Skip to content

Commit

Permalink
fixed vmtk.py PYTHONPATH env for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
daron1337 committed Feb 19, 2016
1 parent 0be48ad commit 9a2f90c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions vmtk.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,9 @@

if vmtkhome.endswith('bin'):
vmtkhome = os.path.join(os.path.dirname(os.path.abspath(__file__)),"..")
else:
vmtkhome = os.path.join(os.path.dirname(os.path.abspath(__file__)),"..","..","..")

if ( vmtkhome == os.path.join("C:",os.path.sep,"Python27","Lib","site-packages","vmtk","bin","..") ):
os.environ["PYTHONPATH"] = os.path.join(vmtkhome)
else:
vmtkhome = os.path.join(os.path.dirname(os.path.abspath(__file__)),"..","..","..")
os.environ["PYTHONPATH"] = os.path.join(vmtkhome,"lib","python2.7","site-packages")

sys.path.append(os.path.join(vmtkhome,"bin"))
Expand Down Expand Up @@ -97,4 +94,3 @@
pipe.Execute()
except Exception:
continue

0 comments on commit 9a2f90c

Please sign in to comment.