Author: bugman
Date: Thu Mar 22 10:37:49 2012
New Revision: 15602
URL: http://svn.gna.org/viewcvs/relax?rev=15602&view=rev
Log:
Removed a number of sys.exit() calls from different relax modes.
The return call is used rather than sys.exit() to exit the main run() method.
These were not needed
and it allows the 'version', 'info', and 'gui' modes to play better with the
multi-processor package
when using mpi4py.
Modified:
1.3/relax.py
Modified: 1.3/relax.py
URL:
http://svn.gna.org/viewcvs/relax/1.3/relax.py?rev=15602&r1=15601&r2=15602&view=diff
==============================================================================
--- 1.3/relax.py (original)
+++ 1.3/relax.py Thu Mar 22 10:37:49 2012
@@ -151,13 +151,13 @@
# Show the version number and exit.
if self.mode == 'version':
print(('relax ' + version))
- sys.exit()
+ return
# Show the relax info and exit.
if self.mode == 'info':
info = Info_box()
print(info.sys_info())
- sys.exit()
+ return
# Logging.
if self.log_file:
@@ -178,7 +178,7 @@
# Dependency check.
if not dep_check.wx_module:
sys.stderr.write("Please install the wx Python module to
access the relax GUI.\n\n")
- sys.exit()
+ return
# Set the GUI flag in the status object.
status.show_gui = True
_______________________________________________
relax (http://nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits