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: