Commit 1df3cb78 authored by Laurent Bachelier's avatar Laurent Bachelier 🐧 Committed by Romain Bignon
Browse files

Allow complete paths for script

This allows running any weboob script, not only those in scripts/
parent a0abba98
......@@ -34,7 +34,12 @@
print s[0]
sys.exit(p.returncode)
if os.path.exists(script):
spath = script
else:
spath = os.path.join(project, 'scripts', script)
os.execvpe(
sys.executable,
['-Wall', os.path.join(project, 'scripts', script)] + args,
['-Wall', spath] + args,
env)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment