mailr11888 - /1.3/prompt/interpreter.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on December 17, 2010 - 20:19:
Author: bugman
Date: Fri Dec 17 20:19:26 2010
New Revision: 11888

URL: http://svn.gna.org/viewcvs/relax?rev=11888&view=rev
Log:
Fix for script execution - the extension check for '.py' was incorrect!


Modified:
    1.3/prompt/interpreter.py

Modified: 1.3/prompt/interpreter.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/prompt/interpreter.py?rev=11888&r1=11887&r2=11888&view=diff
==============================================================================
--- 1.3/prompt/interpreter.py (original)
+++ 1.3/prompt/interpreter.py Fri Dec 17 20:19:26 2010
@@ -364,7 +364,7 @@
     # Check if the script name is ok.
     if search('\.', module):
         raise RelaxError("The relax script must not contain the '.' 
character (except before the extension '*.py').")
-    if ext != 'py':
+    if ext != '.py':
         raise RelaxError("The script must have the extension *.py.")
 
     # Execute the module.




Related Messages


Powered by MHonArc, Updated Fri Dec 17 20:40:02 2010