Addon Installation Consistency #50273

Closed
opened 2016-12-18 19:00:25 +01:00 by sicutunum · 6 comments

This simple logic tree would solve a lot of confusion for installing 3rd party addons and can be easily implemented with Python OS functions.

• Case. Trying to install Addon.py shipped in a zip file (small addons are often delivered via zip file with other documentation or external assets):

User presses Install with zip file selected
    Zipped folder not contain __init__.py? 
        Import Addon.py file found in folder into addons only.

The second tree would use a pop-up message to ensure the init.py parent directory was for the actual addon and not a large system folder or some other unintentional thing (before proceeding with import).

• Case. Trying to install init.py file in a folder that must be zipped to be installed (should a browser automatically unzip the download or else user does unknowingly):

User presses Install with __init__.py file selected
    Get parent directory of __init__.py
        Invoke pop-up message "Do you want to install the addon",parentDirectpry,"?"
            Import parent directory as though zipped.
This simple logic tree would solve a lot of confusion for installing 3rd party addons and can be easily implemented with Python OS functions. • Case. Trying to install Addon.py shipped in a zip file (small addons are often delivered via zip file with other documentation or external assets): ``` User presses Install with zip file selected Zipped folder not contain __init__.py? Import Addon.py file found in folder into addons only. ``` The second tree would use a pop-up message to ensure the __init__.py parent directory was for the actual addon and not a large system folder or some other unintentional thing (before proceeding with import). • Case. Trying to install __init__.py file in a folder that must be zipped to be installed (should a browser automatically unzip the download or else user does unknowingly): ``` User presses Install with __init__.py file selected Get parent directory of __init__.py Invoke pop-up message "Do you want to install the addon",parentDirectpry,"?" Import parent directory as though zipped. ```
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @sicutunum

Added subscriber: @sicutunum
Author

Removed subscriber: @sicutunum

Removed subscriber: @sicutunum
Author

Added subscriber: @sicutunum

Added subscriber: @sicutunum
Brendon Murphy was assigned by Aaron Carlisle 2016-12-20 18:51:12 +01:00
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Member

I think here it's known that this happens, many 3rd party devs use a folder structure & single file init inside to prevent this issue, possibly a check could be added, not sure if this is overkill or not, 3rd party addons should follow blender guidelines & examples.
Closing as we will think further on this for 2.8.
thanks for ideas.

I think here it's known that this happens, many 3rd party devs use a folder structure & single file __init__ inside to prevent this issue, possibly a check could be added, not sure if this is overkill or not, 3rd party addons should follow blender guidelines & examples. Closing as we will think further on this for 2.8. thanks for ideas.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#50273
No description provided.