This commit is contained in:
2025-12-06 18:23:17 +08:00
parent 1f10abfb32
commit 9f30e905d7
259 changed files with 33763 additions and 348 deletions

View File

@@ -24,17 +24,16 @@ from . import ModIt_CSS
##_____________________________________________PATH
MODIT_DIR = os.path.dirname(os.path.abspath(__file__)).replace('\\', '/')
USERAPPDIR = mc.internalVar(userAppDir=True)
VERSION = mc.about(v=True)
# Get ModIt's actual location
ModItDir = os.path.dirname(os.path.abspath(__file__))
IconsPathThemeClassic = os.path.join(ModItDir, 'Icons/Theme_Classic/')
ToolPath = os.path.join(ModItDir, 'Tools/')
PreferencePath = os.path.join(ModItDir, 'Preferences/')
PlugInsPath = os.path.join(USERAPPDIR, VERSION+'/plug-ins')
PrefIcons = os.path.join(USERAPPDIR, VERSION+'/prefs/icons')
UserScriptFolder = os.path.join(USERAPPDIR, VERSION+'/scripts')
RessourcePath = os.path.join(ModItDir, 'Ressources/')
IconsPathThemeClassic = os.path.join(MODIT_DIR, 'Icons/Theme_Classic/').replace('\\', '/')
ToolPath = os.path.join(MODIT_DIR, 'Tools/').replace('\\', '/')
PreferencePath = os.path.join(MODIT_DIR, 'Preferences/').replace('\\', '/')
PlugInsPath = os.path.join(USERAPPDIR, VERSION+'/plug-ins').replace('\\', '/')
PrefIcons = os.path.join(USERAPPDIR, VERSION+'/prefs/icons').replace('\\', '/')
UserScriptFolder = os.path.join(USERAPPDIR, VERSION+'/scripts').replace('\\', '/')
RessourcePath = os.path.join(MODIT_DIR, 'Ressources/').replace('\\', '/')