Matthew Bennett
I am resurrecting this topic as I don't quite understand.
If I have a file C:\Users\foo\Desktop\python_script_I_want_to_execute_when_I_push_my_shelf_tool.py
What is required to input into my shelf tool script in order to have it execute that file?
Any info would be much appreciated.
Are you seeking to import that module? If so, “C:\Users\foo\Desktop” needs to be in PYTHONPATH (set in houdini.env), and you'd import the module like normal in your shelf script i.e.:
import python_script_I_want_to_execute_when_I_push_my_shelf_tool
Obviously, you'd package a directory with all your scripts alongside your shelf tool.