Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
+ Handle empty system path in init script
  • Loading branch information
wwmayer committed Feb 21, 2014
1 parent 565fb8c commit c565cf0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/App/FreeCADInit.py
Expand Up @@ -106,7 +106,10 @@ def InitApplications():
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
os.environ["PATH"] = PathExtension + os.environ["PATH"]
try:
os.environ["PATH"] = PathExtension + os.environ["PATH"]
except KeyError:
os.environ["PATH"] = PathExtension
path = os.environ["PATH"].split(os.pathsep)
Log("System path after init:\n")
for i in path:
Expand Down

0 comments on commit c565cf0

Please sign in to comment.