Skip to content
Snippets Groups Projects
Commit 8ac3528d authored by Stefan Froehlich's avatar Stefan Froehlich
Browse files

Task #8623 The python script will now be executed in the pipelines working directory.

parent a9d1d902
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment