11 |
11 |
12 import os |
12 import os |
13 import platform |
13 import platform |
14 |
14 |
15 from PyQt5.QtCore import QObject, QTranslator, QCoreApplication |
15 from PyQt5.QtCore import QObject, QTranslator, QCoreApplication |
16 from PyQt5.QtWidgets import QDialog |
16 from PyQt5.QtWidgets import QDialog |
17 |
17 |
18 from E5Gui import E5MessageBox |
18 from E5Gui import E5MessageBox |
19 from E5Gui.E5Action import E5Action |
19 from E5Gui.E5Action import E5Action |
20 from E5Gui.E5Application import e5App |
20 from E5Gui.E5Application import e5App |
21 |
21 |
24 # Start-of-Header |
24 # Start-of-Header |
25 name = "CxFreeze Plugin" |
25 name = "CxFreeze Plugin" |
26 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
26 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
27 autoactivate = True |
27 autoactivate = True |
28 deactivateable = True |
28 deactivateable = True |
29 version = "6.0.6" |
29 version = "6.0.7" |
30 className = "CxFreezePlugin" |
30 className = "CxFreezePlugin" |
31 packageName = "CxFreeze" |
31 packageName = "CxFreeze" |
32 shortDescription = "Show the CxFreeze dialogs." |
32 shortDescription = "Show the CxFreeze dialogs." |
33 longDescription = \ |
33 longDescription = \ |
34 """This plugin implements the CxFreeze dialogs.""" \ |
34 """This plugin implements the CxFreeze dialogs.""" \ |
156 return [] |
156 return [] |
157 |
157 |
158 # step 1: determine possible candidates |
158 # step 1: determine possible candidates |
159 exes = [] |
159 exes = [] |
160 dirs = path.split(os.pathsep) |
160 dirs = path.split(os.pathsep) |
161 for dir in dirs: |
161 for directory in dirs: |
162 for suffix in scriptSuffixes: |
162 for suffix in scriptSuffixes: |
163 exe = os.path.join(dir, cxfreezeScript + suffix) |
163 exe = os.path.join(directory, cxfreezeScript + suffix) |
164 if os.access(exe, os.X_OK): |
164 if os.access(exe, os.X_OK): |
165 exes.append(exe) |
165 exes.append(exe) |
166 |
166 |
167 # step 2: determine the Python variant |
167 # step 2: determine the Python variant |
168 if Utilities.isMacPlatform(): |
168 if Utilities.isMacPlatform(): |