mailr11879 - /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 - 17:10:
Author: bugman
Date: Fri Dec 17 17:10:39 2010
New Revision: 11879

URL: http://svn.gna.org/viewcvs/relax?rev=11879&view=rev
Log:
Added a check that the script ends in '*.py'.


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=11879&r1=11878&r2=11879&view=diff
==============================================================================
--- 1.3/prompt/interpreter.py (original)
+++ 1.3/prompt/interpreter.py Fri Dec 17 17:10:39 2010
@@ -364,6 +364,8 @@
     # 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':
+        raise RelaxError("The script must have the extension *.py.")
 
     # Execute the module.
     try:




Related Messages


Powered by MHonArc, Updated Fri Dec 17 17:20:01 2010