From: <wa...@us...> - 2007-11-29 16:07:15
|
Revision: 382 http://rpy.svn.sourceforge.net/rpy/?rev=382&view=rev Author: warnes Date: 2007-11-29 08:07:13 -0800 (Thu, 29 Nov 2007) Log Message: ----------- Move rpy module load back inside try:except block Modified Paths: -------------- trunk/rpy/rpy.py Modified: trunk/rpy/rpy.py =================================================================== --- trunk/rpy/rpy.py 2007-11-29 16:06:18 UTC (rev 381) +++ trunk/rpy/rpy.py 2007-11-29 16:07:13 UTC (rev 382) @@ -114,12 +114,14 @@ print "Loading Rpy version %s .." % RVER, sys.stdout.flush() -exec("import _rpy%s as _rpy" % RVER) + try: - pass -except: - #raise RuntimeError( - print( + command = "import _rpy%s as _rpy" % RVER + print "Executing the command %s..." % command + exec(command) + print "Done." +except Exception, e: + raise RuntimeError( str(e) + """ RPy module can not be imported. Please check if your rpy @@ -132,7 +134,6 @@ >>> from rpy import * """ % RVERSION) - sys.exit(1) if VERBOSE: print "Done." This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |