From: Phil E. <l2...@us...> - 2005-05-09 09:58:11
|
Update of /cvsroot/pythoncard/PythonCard/tools/standaloneBuilder In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24158 Modified Files: standaloneBuilder.py Log Message: Fixed a problem with the line endings on the template files and added a check to the rebuild process so that we don;t try and do a build if no main script has been specified Index: standaloneBuilder.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/standaloneBuilder/standaloneBuilder.py,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** standaloneBuilder.py 5 May 2005 12:50:24 -0000 1.9 --- standaloneBuilder.py 9 May 2005 09:58:02 -0000 1.10 *************** *** 471,474 **** --- 471,482 ---- def on_rebuildBtn_mouseClick(self, event): + # we have to make sure that there is something defined as a 'main + # script' before we can do a rebuild + if self.components.mainScript.text == '': + title = 'Project error!' + txt = 'You have not specified the main script for this project!' + bull = dialog.alertDialog(self, wrap_string(txt, 70), title) + return + # save the project if required if not self.saveIfRequired(): return |