Skip to content

Commit

Permalink
App: FreeCADInit.py: remove unused import + add local Mod dir
Browse files Browse the repository at this point in the history
  • Loading branch information
looooo authored and wwmayer committed Mar 18, 2017
1 parent bcfac0e commit 2a7fdef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/App/FreeCADInit.py
Expand Up @@ -36,7 +36,7 @@

def InitApplications():
try:
import sys,os,traceback,io
import sys,os,traceback
except ImportError:
FreeCAD.Console.PrintError("\n\nSeems the python standard libs are not installed, bailing out!\n\n")
raise
Expand Down Expand Up @@ -96,7 +96,7 @@ def InitApplications():

# this allows importing with:
# from FreeCAD.Module import package
FreeCAD.__path__ = [ModDir, Lib64Dir, LibDir]
FreeCAD.__path__ = [ModDir, Lib64Dir, LibDir, HomeMod]

# also add these directories to the sys.path to
# not change the old behaviour. once we have moved to
Expand All @@ -112,6 +112,7 @@ def InitApplications():
if (os.path.exists(InstallFile)):
try:
# XXX: This looks scary securitywise...

with open(InstallFile) as f:
exec(f.read())
except Exception as inst:
Expand Down

0 comments on commit 2a7fdef

Please sign in to comment.