Ammar Aziz
03/02/2026, 12:06 PM/template. I have a process that runs a python script like this:
script:
template("script1.py")
script1.py imports script2.py which lives inside the template/ folder. Running the module produces an error about missing imports "ModuleNotFoundError"Adam Talbot
03/02/2026, 12:29 PMscript1.py is created as a new file in the workDir with the variables interpreted.
This means your import script doesn't exist unless you also stage it and make it available in the PYTHONPATH somehow.pontus
03/02/2026, 1:55 PMscript session to get the value of the evaluated template - but that ends up in .command.sh.
It may be a better design to go with binaries rather than templates.Adam Talbot
03/02/2026, 2:13 PMThat seems not correct - the template use here causes theYes, sorry that's what I was trying (and failing) to saysession to get the value of the evaluated template - but that ends up inscript..command.sh
Adam Talbot
03/02/2026, 2:14 PMIt may be a better design to go with binaries rather than templates.I think so - once your Python script is large enough to start using imports you're moving beyond a template.
Ammar Aziz
03/02/2026, 10:12 PM