Mod: issue #6274: Source code installation failed

This commit is contained in:
wmayer
2022-04-18 12:27:09 +02:00
parent 94c5d89d1f
commit d98aaecbfe
6 changed files with 32 additions and 0 deletions

View File

@@ -104,6 +104,10 @@ def InitApplications():
LibPyDir = os.path.realpath(LibPyDir)
if (os.path.exists(LibPyDir)):
libpaths.append(LibPyDir)
LibFcDir = FreeCAD.getLibraryDir()
LibFcDir = os.path.realpath(LibFcDir)
if (os.path.exists(LibFcDir) and not LibFcDir in libpaths):
libpaths.append(LibFcDir)
AddPath = FreeCAD.ConfigGet("AdditionalModulePaths").split(";")
HomeMod = FreeCAD.getUserAppDataDir()+"Mod"
HomeMod = os.path.realpath(HomeMod)