Author: bugman Date: Fri Dec 17 14:11:23 2010 New Revision: 11863 URL: http://svn.gna.org/viewcvs/relax?rev=11863&view=rev Log: Bug fix - the script path is now being removed from sys.path. This was causing incorrect scripts to be loaded if exec_script() is run multiple times. 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=11863&r1=11862&r2=11863&view=diff ============================================================================== --- 1.3/prompt/interpreter.py (original) +++ 1.3/prompt/interpreter.py Fri Dec 17 14:11:23 2010 @@ -363,6 +363,9 @@ # Execute the module. runpy.run_module(module, globals) + # Remove the script path. + sys.path.pop(sys.path.index(script_path)) + # Unlock execution if needed. status.exec_lock.release()