Add lib64 to python path

On certain distributions the library directories are called "lib64" on
amd64 machines
This commit is contained in:
Lorenz Hüdepohl 2016-01-23 17:10:03 +01:00
parent b25ef6235d
commit 7f355febda

View File

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