Author: bugman Date: Thu Dec 16 12:49:07 2010 New Revision: 11843 URL: http://svn.gna.org/viewcvs/relax?rev=11843&view=rev Log: Nested scripts no longer acquire the execution lock. 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=11843&r1=11842&r2=11843&view=diff ============================================================================== --- 1.3/prompt/interpreter.py (original) +++ 1.3/prompt/interpreter.py Thu Dec 16 12:49:07 2010 @@ -356,7 +356,8 @@ # Execution lock. status = Status() - status.exec_lock.acquire('script UI') + if not (status.exec_lock.locked() and status.exec_lock._name == 'script UI'): + status.exec_lock.acquire('script UI') # The module path. head, tail = path.split(name) @@ -369,7 +370,7 @@ # Execute the module. runpy.run_module(module, globals) - # Unlock execution. + # Unlock execution if needed. if status.exec_lock.locked(): status.exec_lock.release()