Author: bugman Date: Fri Dec 17 17:19:39 2010 New Revision: 11880 URL: http://svn.gna.org/viewcvs/relax?rev=11880&view=rev Log: Merged revisions 11879 via svnmerge from svn+ssh://bugman@xxxxxxxxxxx/svn/relax/1.3 ........ r11879 | bugman | 2010-12-17 17:10:39 +0100 (Fri, 17 Dec 2010) | 3 lines Added a check that the script ends in '*.py'. ........ Modified: branches/bieri_gui/ (props changed) branches/bieri_gui/prompt/interpreter.py Propchange: branches/bieri_gui/ ------------------------------------------------------------------------------ --- svnmerge-integrated (original) +++ svnmerge-integrated Fri Dec 17 17:19:39 2010 @@ -1,1 +1,1 @@ -/1.3:1-11873 +/1.3:1-11879 Modified: branches/bieri_gui/prompt/interpreter.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/prompt/interpreter.py?rev=11880&r1=11879&r2=11880&view=diff ============================================================================== --- branches/bieri_gui/prompt/interpreter.py (original) +++ branches/bieri_gui/prompt/interpreter.py Fri Dec 17 17:19: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: