- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
So I'm trying to write a tool for Maya, I've create a directory and in that directory I have a __init__.py, a custom maya launcher bat file, a userSetup.py, and the main directory with all the code.
Like this:
C:/PIPELINE/TOOLS/
- core
--- stuff.py
--- morestuff.py
- __init__.py
- mayaLaunch.bat
- userSetup.py
The problem is in my bat file I have set PYTHONPATH & MAYA_SCRIPT_PATH to this directory first, then call maya.exe
set PYTHONPATH=%PYTHONPATH%;C:/PIPELINE/TOOLS
set MAYA_SCRIPT_PATH=%MAYA_SCRIPT_PATH%;C:/PIPELINE/TOOLS
When I do this and call maya, it basically says in the output window that it cannot find maya modules, that PYTHONPATH is not set correctly, etc.
Oddly enough when I set the paths one directory down ("core" folder) and run it from there it works perfectly fine.
Does anyone know why this is happening? It's really strange and I can't figure it out for the life of me.
Solved! Go to Solution.