diff options
author | Christian Tismer <tismer@stackless.com> | 2013-10-18 08:03:21 +0200 |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2013-10-18 08:03:21 +0200 |
commit | 6f49a93f59b930be858cd1cc9174de74f38ff393 (patch) | |
tree | b52cab60c086b4654baf31e05e5092982d4f523e /qtinfo.py | |
parent | 11aaca4237ac382b101b043d2871ab0d0deb9076 (diff) |
use the headers info that can be found in "qmake -query".
Since Qt has a headers variable, there is no reason for a work-around.
Diffstat (limited to 'qtinfo.py')
-rw-r--r-- | qtinfo.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -30,6 +30,9 @@ class QtInfo(object): def getTranslationsPath(self): return self.getProperty("QT_INSTALL_TRANSLATIONS") + def getHeadersPath(self): + return self.getProperty("QT_INSTALL_HEADERS") + def getProperty(self, prop_name): cmd = [self._qmake_path, "-query", prop_name] proc = subprocess.Popen(cmd, stdout = subprocess.PIPE, shell=False) @@ -48,3 +51,4 @@ class QtInfo(object): qmake_path = property(getQMakePath) imports_dir = property(getImportsPath) translations_dir = property(getTranslationsPath) + headers_dir = property(getHeadersPath) |