PluginCxFreeze.py

changeset 102
78d1632d4b83
parent 100
8d5a15ba6212
child 104
192bc09e64de
equal deleted inserted replaced
101:20f85736a29f 102:78d1632d4b83
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():
372 dia.show() 372 dia.show()
373 res = dia.start(args, parms, project.ppath, 373 res = dia.start(args, parms, project.ppath,
374 project.getMainScript()) 374 project.getMainScript())
375 if res: 375 if res:
376 dia.exec_() 376 dia.exec_()
377
378 #
379 # eflag: noqa = M801

eric ide

mercurial