How to include files like images and others to be installed with an addon in its folder?

I already know how to load an icon for an addon operator. I know that I can manually put that icon in the addon location so it loads. But how to package images and other files that will be used by the addon, so they install together when an user installs my addon? Thank you very much! :slight_smile:

you should only have to include them in your zip file- blender just unpacks them for you, it doesn’t do anything else- so whatever is in your zip will be “installed” to the scripts/addons folder.

If you need these files in a different place you’ll need to write some code that happens on the addon’s first-run to move the files wherever you need them to go using basic python file IO

1 Like

Thank you very much! I also noticed I have to name my script init.py so it loads.