Forum: Poser Python Scripting


Subject: runPythonScript and relative path...

semidieu opened this issue on Mar 19, 2007 ยท 3 posts


semidieu posted Mon, 19 March 2007 at 9:40 AM

When you use:

runPythonScript ":runtime:python:poserScripts:myscript.py"

it work as expected only if the file is located in the MAIN poser runtime folder. Is there a trick or anything to make it look in other runtime ?


PhilC posted Mon, 19 March 2007 at 9:50 AM

You can try putting in the full path, but I always ensure that the script is with the runtime of the Poser installation that is running.


semidieu posted Mon, 19 March 2007 at 10:03 AM

Thanks for the answer...

The problem is I need the relative path, because if I want to distribute a pose file with the runPythonScript tag inside, it must be relative...