From 7f355febda9692bbe5d910b2bbea811b8f6b55b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20H=C3=BCdepohl?= Date: Sat, 23 Jan 2016 17:10:03 +0100 Subject: [PATCH] Add lib64 to python path On certain distributions the library directories are called "lib64" on amd64 machines --- src/App/FreeCADInit.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/App/FreeCADInit.py b/src/App/FreeCADInit.py index 33637cd3c..3a24e4b83 100644 --- a/src/App/FreeCADInit.py +++ b/src/App/FreeCADInit.py @@ -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