- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
In my current setup, I have a master folder that has 10 different .py files along with __init__ file. I use Python.ExecuteFile in order to run my mainLaunch.py file and a Pyside Ui is generated. Depending on what the user clicks on, the corresponding .py file is imported/loaded.
At the time of development, I added a PYTHONPATH system environment variable that had the path of the folder that houses all my scripts. This worked well and I could see my scripts folder when I did sys.path print.
The issue is that not everyone in the team has python installed and as a result, this approach might not work for everyone.
What would be the correct/efficient way of doing this? Coming from Maya we have a userSetup.py/maya.env where we can append sys.path. This will make sure that the scripts folder is accessible and Maya scans for scripts in that folder when needed.
Ideally, I would love to add my scripts directory to the system environment variable and have Max look into it for scripts. I also don't want to copy scripts into program files.
It looks like this( https://help.autodesk.com/view/3DSMAX/2022/ENU/?guid=GUID-D7D373FD-CA78-4986-AB3D-B1E25F2A37CC ) is what I should be using but I am not able to get it to work.
Solved! Go to Solution.