diff --git a/launch.py b/launch.py index 173f937ded7ae63517d415ec84a4cd626aa671d8..2024a95708844755708b26f204d6c9b2494b6beb 100755 --- a/launch.py +++ b/launch.py @@ -348,7 +348,7 @@ class LaunchJob(ParametricJob): pin.write(b'else:\n') pin.write(('\tprint ("metafor dir %s not found!")\n'%mtfdir).encode('utf-8')) pin.write(b'\tsys.exit()\n\n') - #print(('__file__ = r"%s"\n'%os.path.join(mtfdir,'.pythonrc.py')).encode('utf-8')) + # __file__ has to be defined (with absPath) to execute .pythonc.py pin.write(('__file__ = r"%s"\n'%os.path.join(mtfdir,'.pythonrc.py')).encode('utf-8')) pin.write(('exec(open(r"%s").read())\n'%os.path.join(mtfdir,'.pythonrc.py')).encode('utf-8')) pin.write(b'import toolbox.battery as b\n')