AWS Thinkbox Discussion Forums

run python script from python script

Is there a way to execute a python script from within another python script running in a deadline environment? We have a generic deadline script to run RV, that accepts some custom command line arguments.

The users would like to be able to have access to these, so we have to implement some ‘wrapper’ scripts that execute the main script with different parametrization.

If i just use a regular subprocess spawn, it will run in our separate python installation, which will lack all the deadline python libraries that we need.

Any suggestions?

You could use deadlinecommand to do this:

deadlinecommand.exe -executescript "path\to\script.py"

Would that work?

Ill give that a try thanks!

Adding the ability to create custom script entries for existing scripts with just custom parameters through the monitor would be the best :slight_smile:

Would execfile() do what you need? docs.python.org/2.6/library/func … c#execfile

Privacy | Site terms | Cookie preferences