DaBaptisteFraboul / Maya-GuerillaTagsEditor

A GuerillaTags editor for maya i made, my purpose is to make it the most comfortable possible
MIT License
3 stars 0 forks source link

consider packaging this tool #16

Open hannesdelbeke opened 9 months ago

hannesdelbeke commented 9 months ago

hi

consider packaging this tool right now, you add a lot of files to the sys.path with append. one of those files is main.py, a commonly used name for a script. if a plugin developed by anyone else shares the same name, this script wont work

consider creating a python package by putting all your python files in a folder with a __init__.py to make the folder importable then give the folder a unique name, e.g. guerilla_tags to avoid any clashes.

and instead of doing e.g.

import path_utils

you then do

import guerilla_tags.path_utils
DaBaptisteFraboul commented 9 months ago

Sure, I will look to add this modification .