Message 1 of 4

Not applicable
10-13-2016
09:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good evening,
I'm shortly before releasing my plugin for everyone. I have created a folder named Circlelizer. In that folder, I have other folders called "html", "resources" and "themes". So how do I reference them correctly within my plugin? I could just place all the resources etc. inside a Maya folder but I don't want to mix those files. It also doesn't look clean for me.
So my structure looks like this:
Circlelizer
- html
- resources
- themes
- circlelizer.py
So If I load the plugin while the folder is let's say on my desktop, the working directory is .../maya/bin. If I now would reference my resources inside my script like /resources/image.png it would immediately throw an error message.
Regards,
Life
Solved! Go to Solution.