PluginCxFreeze.py

changeset 56
c8a47a8536b0
parent 54
d14ff08ea519
child 57
ddf3165e3d62
equal deleted inserted replaced
55:f8f333fffe81 56:c8a47a8536b0
53 @return dictionary containing the data to query the presence of 53 @return dictionary containing the data to query the presence of
54 the executable 54 the executable
55 """ 55 """
56 dataList = [] 56 dataList = []
57 data = { 57 data = {
58 "programEntry" : True, 58 "programEntry": True,
59 "header" : QCoreApplication.translate("CxFreezePlugin", 59 "header": QCoreApplication.translate("CxFreezePlugin",
60 "Packagers - cx_freeze"), 60 "Packagers - cx_freeze"),
61 "exe" : 'dummyfreeze', 61 "exe": 'dummyfreeze',
62 "versionCommand" : '--version', 62 "versionCommand": '--version',
63 "versionStartsWith" : 'dummyfreeze', 63 "versionStartsWith": 'dummyfreeze',
64 "versionPosition" : -1, 64 "versionPosition": -1,
65 "version" : "", 65 "version": "",
66 "versionCleanup" : None, 66 "versionCleanup": None,
67 } 67 }
68 68
69 if _checkProgram(): 69 if _checkProgram():
70 for exePath in (exePy2+exePy3): 70 for exePath in (exePy2+exePy3):
71 data["exe"] = exePath 71 data["exe"] = exePath
207 "The cxfreeze executable could not be found.") 207 "The cxfreeze executable could not be found.")
208 return False 208 return False
209 else: 209 else:
210 return True 210 return True
211 211
212
212 class CxFreezePlugin(QObject): 213 class CxFreezePlugin(QObject):
213 """ 214 """
214 Class implementing the CxFreeze plugin. 215 Class implementing the CxFreeze plugin.
215 """ 216 """
216 def __init__(self, ui): 217 def __init__(self, ui):
352 353
353 # now do the call 354 # now do the call
354 from CxFreeze.CxfreezeExecDialog import CxfreezeExecDialog 355 from CxFreeze.CxfreezeExecDialog import CxfreezeExecDialog
355 dia = CxfreezeExecDialog("cxfreeze") 356 dia = CxfreezeExecDialog("cxfreeze")
356 dia.show() 357 dia.show()
357 res = dia.start(args, 358 res = dia.start(args, parms, project.ppath,
358 os.path.join(project.ppath, project.pdata["MAINSCRIPT"][0])) 359 project.pdata["MAINSCRIPT"][0])
359 if res: 360 if res:
360 dia.exec_() 361 dia.exec_()

eric ide

mercurial