0000504: Include macro directory as part of default python path
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5248 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
parent
400a4d719d
commit
b9a07509d4
|
@ -50,8 +50,8 @@ def InitApplications():
|
|||
AddPath = FreeCAD.ConfigGet("AdditionalModulePaths").split(";")
|
||||
HomeMod = FreeCAD.ConfigGet("UserAppData")+"Mod"
|
||||
HomeMod = os.path.realpath(HomeMod)
|
||||
MacroMod = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Macro").GetString("MacroPath")+"/Mod"
|
||||
MacroMod = os.path.realpath(MacroMod)
|
||||
MacroDir = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Macro").GetString("MacroPath")
|
||||
MacroMod = os.path.realpath(MacroDir+"/Mod")
|
||||
ModPar = FreeCAD.ParamGet("System parameter:Modules")
|
||||
|
||||
#print FreeCAD.getHomePath()
|
||||
|
@ -111,6 +111,8 @@ def InitApplications():
|
|||
Log("System path after init:\n")
|
||||
for i in path:
|
||||
Log(" " + i + "\n")
|
||||
# add MacroDir to path (RFE #0000504)
|
||||
sys.path.append(MacroDir)
|
||||
# add special path for MacOSX (bug #0000307)
|
||||
import platform
|
||||
if len(platform.mac_ver()[0]) > 0:
|
||||
|
|
Loading…
Reference in New Issue
Block a user