diff options
author | Thomas-Karl Pietrowski <thopiekar@googlemail.com> | 2016-02-03 21:43:44 +0100 |
---|---|---|
committer | Thomas-Karl Pietrowski <thopiekar@googlemail.com> | 2016-02-03 21:43:44 +0100 |
commit | d97d12e781dde4101f45c15a3860b01aac2f2aca (patch) | |
tree | 3db4c8c1043acfcf8cf297e17d85c48886b15afc /qtinfo.py | |
parent | e3eb4a6d3e29402a062217dde21d8918108a398a (diff) |
Fixing the hotfix: Importing needed "os" and at least replacing _qmake_path with _qmake_command
Well, not more left to say.
Diffstat (limited to 'qtinfo.py')
-rw-r--r-- | qtinfo.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -import sys +import os, sys import subprocess from distutils.spawn import find_executable @@ -10,7 +10,7 @@ class QtInfo(object): self._qmake_command = [find_executable("qmake"),] def getQMakePath(self): - qmake_path = self._qmake_path[0] # Guessing the first of the commands is qmake + qmake_path = self._qmake_command[0] # Guessing the first of the commands is qmake if not os.path.exists(qmake_path): # Making it here a bit more failsave. qmake_path = find_executable(qmake_path) # In case someone just passed the name of the executable I'll search for it now. if qmake_path == None: # If we couldn't resolv the location of the executable |