Author: bugman Date: Fri Nov 27 10:46:40 2009 New Revision: 9989 URL: http://svn.gna.org/viewcvs/relax?rev=9989&view=rev Log: relax now launches when the wx python module is not installed. Modified: branches/bieri_gui/relax Modified: branches/bieri_gui/relax URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/relax?rev=9989&r1=9988&r2=9989&view=diff ============================================================================== --- branches/bieri_gui/relax (original) +++ branches/bieri_gui/relax Fri Nov 27 10:46:40 2009 @@ -50,7 +50,8 @@ # relax modules. import generic_fns -import gui_bieri +if dep_check.wx_module: + import gui_bieri from prompt.gpl import gpl from prompt import interpreter import relax_errors @@ -323,6 +324,10 @@ elif options.licence: parser.error("the relax GUI mode and licence mode are mutually exclusive") + # Missing wx module. + if not dep_check.wx_module: + parser.error("To use the Bieri GUI, the wx python module must be installed.") + # Set the mode. if options.gui == 'bieri' or options.gui_bieri: mode = 'gui_bieri'