32 # Start-of-Header |
32 # Start-of-Header |
33 name = "CxFreeze Plugin" |
33 name = "CxFreeze Plugin" |
34 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
34 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
35 autoactivate = True |
35 autoactivate = True |
36 deactivateable = True |
36 deactivateable = True |
37 version = "5.3.0" |
37 version = "5.3.1" |
38 className = "CxFreezePlugin" |
38 className = "CxFreezePlugin" |
39 packageName = "CxFreeze" |
39 packageName = "CxFreeze" |
40 shortDescription = "Show the CxFreeze dialogs." |
40 shortDescription = "Show the CxFreeze dialogs." |
41 longDescription = \ |
41 longDescription = \ |
42 """This plugin implements the CxFreeze dialogs.""" \ |
42 """This plugin implements the CxFreeze dialogs.""" \ |
335 """ |
335 """ |
336 project = e5App().getObject("Project") |
336 project = e5App().getObject("Project") |
337 if len(project.pdata["MAINSCRIPT"]) == 0: |
337 if len(project.pdata["MAINSCRIPT"]) == 0: |
338 # no main script defined |
338 # no main script defined |
339 E5MessageBox.critical( |
339 E5MessageBox.critical( |
340 self, |
340 self.__ui, |
341 self.trUtf8("cxfreeze"), |
341 self.trUtf8("cxfreeze"), |
342 self.trUtf8( |
342 self.trUtf8( |
343 """There is no main script defined for the current""" |
343 """There is no main script defined for the current""" |
344 """ project."""), |
344 """ project."""), |
345 E5MessageBox.StandardButtons(E5MessageBox.Abort)) |
345 E5MessageBox.StandardButtons(E5MessageBox.Abort)) |
348 majorVersionStr = project.getProjectLanguage() |
348 majorVersionStr = project.getProjectLanguage() |
349 exe = {"Python": exePy2, "Python2": exePy2, "Python3": exePy3}\ |
349 exe = {"Python": exePy2, "Python2": exePy2, "Python3": exePy3}\ |
350 .get(majorVersionStr) |
350 .get(majorVersionStr) |
351 if exe == []: |
351 if exe == []: |
352 E5MessageBox.critical( |
352 E5MessageBox.critical( |
353 self, |
353 self.__ui, |
354 self.trUtf8("cxfreeze"), |
354 self.trUtf8("cxfreeze"), |
355 self.trUtf8("""The cxfreeze executable could not be found.""")) |
355 self.trUtf8("""The cxfreeze executable could not be found.""")) |
356 return |
356 return |
357 |
357 |
358 # check if all files saved and errorfree before continue |
358 # check if all files saved and errorfree before continue |