Author: bugman Date: Thu Sep 8 16:59:26 2011 New Revision: 14615 URL: http://svn.gna.org/viewcvs/relax?rev=14615&view=rev Log: The script GUI user function is now operational again. The interpreter object is now imported and the synchronous apply() rather asynchonous queue() method is now used. This allows the execution lock to be released by the script at the end. Modified: 1.3/gui/user_functions/script.py Modified: 1.3/gui/user_functions/script.py URL: http://svn.gna.org/viewcvs/relax/1.3/gui/user_functions/script.py?rev=14615&r1=14614&r2=14615&view=diff ============================================================================== --- 1.3/gui/user_functions/script.py (original) +++ 1.3/gui/user_functions/script.py Thu Sep 8 16:59:26 2011 @@ -33,6 +33,7 @@ # GUI module imports. from base import UF_base from gui.filedialog import RelaxFileDialog +from gui.interpreter import Interpreter; interpreter = Interpreter() class Script(UF_base): @@ -76,4 +77,4 @@ """ # Execute the user function. - self.gui.interpreter.queue('script', str(file)) + interpreter.apply('script', str(file))