diff --git a/CEP/Pipeline/recipes/sip/nodes/python_plugin.py b/CEP/Pipeline/recipes/sip/nodes/python_plugin.py index 2beb2b16f209295dfb3cd3b6f808ab51112e58ec..ff3642a1b223b9bb2159182861ec8a89fbb0ec99 100644 --- a/CEP/Pipeline/recipes/sip/nodes/python_plugin.py +++ b/CEP/Pipeline/recipes/sip/nodes/python_plugin.py @@ -71,9 +71,13 @@ class python_plugin(LOFARnodeTCP): try: # **************************************************************** # Run + # Change to working directory for the script + pipedir = os.getcwd() + os.chdir(work_dir) outdict = {} plugin = imp.load_source('main', executable) outdict = plugin.main(*args, **kwargs) + os.chdir(pipedir) except CalledProcessError, err: # CalledProcessError isn't properly propagated by IPython