Im currently creating a tool to be used within Maya 2022 and to define where the tool needs to grab the icons from I’m currently using this code:
icon_path = "C:/example/path/here/example.png"
However if I ever want to share my tool to others the file path with have to be relative. What would be the best way to do this?
To note: I’m currently keeping the code for this tool outside of maya’s script folder. I assume this will either have to be moved to my scripts folder or added to my environment variables?