ad-don path and requirements

Hi guys, not sure is the right thread… but I’ll give it a go.

Is there any environment variable to set/extend the add-on lookup path? I would be in need of having it set programmatically.
Thanks a bunch !
L.

ps.
I have found this, but is not what I’m after, as it would require a startup script.
https://docs.blender.org/manual/en/dev/preferences/addons.html?highlight=add

p.p.s.s
https://docs.blender.org/manual/en/dev/advanced/command_line/arguments.html?highlight=environment%20variables#environment-variables

could I use ${BLENDER_USER_SCRIPT} ?

Are you wanting a additional addon path or is this for a addon? I think you can go to User Preferences > File > Scripts > “insert my additional path here”. https://docs.blender.org/manual/en/dev/preferences/file.html

bpy.utils.user_resource or something else in the bpy.utils module.

https://docs.blender.org/api/2.79/bpy.utils.html#bpy.utils.user_resource

Thanks guys , tested with the BLENDER_USER_SCRIPT env and seems to be working :slight_smile:
Cheers.
L.