Message 1 of 9
Not applicable
01-31-2018
01:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to reference an image that's in the same directory as the script. There's no Maya file used or associated with the script
I've tried:
print os.path.dirname(os.path.realpath(sys.argv[0])) print os.path.split(maya.cmds.__file__)[0] print sys.argv[0] print os.path.abspath(os.path.dirname(sys.argv[0]))
All of which point to: C:\Program Files\Autodesk\Maya2017\bin
Whereas I hoped that it would pijnt to something like: D:\myprojects\Maya\something\scripts
Any ideas? Cheers
Solved! Go to Solution.