aboutsummaryrefslogtreecommitdiffstats
path: root/qtinfo.py
diff options
context:
space:
mode:
authorThomas-Karl Pietrowski <thopiekar@googlemail.com>2016-02-02 21:17:59 +0100
committerThomas-Karl Pietrowski <thopiekar@googlemail.com>2016-02-02 21:17:59 +0100
commitca90a050c12f52bf5f4fb55f721ee5811f583afe (patch)
tree2b92c4959f42b6cb59502e54a1e89b63d78db0d5 /qtinfo.py
parent29aae843ba7ccc19eeae5864bed9e6586d0779ac (diff)
Passing command(s) to qtinfo as list
Diffstat (limited to 'qtinfo.py')
-rw-r--r--qtinfo.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/qtinfo.py b/qtinfo.py
index 7c4cde76b..ebf781128 100644
--- a/qtinfo.py
+++ b/qtinfo.py
@@ -3,11 +3,11 @@ import subprocess
from distutils.spawn import find_executable
class QtInfo(object):
- def __init__(self, qmake_path=None):
- if qmake_path:
- self._qmake_path = qmake_path
+ def __init__(self, qmake_command=None):
+ if qmake_command:
+ self._qmake_command = qmake_command
else:
- self._qmake_path = find_executable("qmake")
+ self._qmake_command = [find_executable("qmake"),]
def getQMakePath(self):
return self._qmake_path
@@ -37,7 +37,7 @@ class QtInfo(object):
return self.getProperty("QT_INSTALL_DOCS")
def getProperty(self, prop_name):
- cmd = [self._qmake_path, "-query", prop_name]
+ cmd = self._qmake_command + ["-query", prop_name]
proc = subprocess.Popen(cmd, stdout = subprocess.PIPE, shell=False)
prop = proc.communicate()[0]
proc.wait()
@@ -51,7 +51,7 @@ class QtInfo(object):
bins_dir = property(getBinsPath)
libs_dir = property(getLibsPath)
plugins_dir = property(getPluginsPath)
- qmake_path = property(getQMakePath)
+ qmake_command = property(getQMakePath)
imports_dir = property(getImportsPath)
translations_dir = property(getTranslationsPath)
headers_dir = property(getHeadersPath)