Merge pull request #119 from dev-at-stellardeath-org/python_lib64

Add lib64 to python path
This commit is contained in:
wwmayer 2016-03-14 21:09:56 +01:00
commit 711f34f5ae

View File

@ -47,6 +47,8 @@ def InitApplications():
BinDir = os.path.realpath(BinDir) BinDir = os.path.realpath(BinDir)
LibDir = FreeCAD.getHomePath()+'lib' LibDir = FreeCAD.getHomePath()+'lib'
LibDir = os.path.realpath(LibDir) LibDir = os.path.realpath(LibDir)
Lib64Dir = FreeCAD.getHomePath()+'lib64'
Lib64Dir = os.path.realpath(Lib64Dir)
AddPath = FreeCAD.ConfigGet("AdditionalModulePaths").split(";") AddPath = FreeCAD.ConfigGet("AdditionalModulePaths").split(";")
HomeMod = FreeCAD.ConfigGet("UserAppData")+"Mod" HomeMod = FreeCAD.ConfigGet("UserAppData")+"Mod"
HomeMod = os.path.realpath(HomeMod) HomeMod = os.path.realpath(HomeMod)
@ -109,6 +111,7 @@ def InitApplications():
else: else:
Log('Init: Initializing ' + Dir + '(Init.py not found)... ignore\n') Log('Init: Initializing ' + Dir + '(Init.py not found)... ignore\n')
sys.path.insert(0,LibDir) sys.path.insert(0,LibDir)
sys.path.insert(0,Lib64Dir)
sys.path.insert(0,ModDir) sys.path.insert(0,ModDir)
Log("Using "+ModDir+" as module path!\n") Log("Using "+ModDir+" as module path!\n")
# new paths must be prepended to avoid to load a wrong version of a library # new paths must be prepended to avoid to load a wrong version of a library