enenra / space-engineers-utilities

A Blender 4.0+ addon to streamline working on assets for Space Engineers.
https://spaceengineers.wiki.gg/wiki/Modding/Tools/Space_Engineers_Utilities
GNU General Public License v3.0
49 stars 12 forks source link

If scripts directory is overridden, things break. #407

Closed enenra closed 1 month ago

enenra commented 1 month ago

image https://discord.com/channels/657941006397734912/670912695788371979/1293284152980017265

among other things, this breaks:

def get_tool_dir() -> str:
    return os.path.join(bpy.utils.user_resource("SCRIPTS"), 'addons', __package__[:__package__.find(".")], 'tools')