Commit 08d56740a5ca687e57c385ac3ff0e41cbdfc2f89

Authored by Paulo Henrique Junqueira Amorim
1 parent 5fd506ac

FIX: Changes made to fix bug in MS Windows

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
invesalius/invesalius.py
... ... @@ -23,7 +23,9 @@ import sys
23 23  
24 24 # TODO: This should be called during installation
25 25 # ----------------------------------------------------------------------
26   -path = os.path.join(os.getenv("HOME"), ".invesalius", "presets")
  26 +
  27 +path = os.path.join(os.path.expanduser('~'), ".invesalius", "presets")
  28 +print path
27 29 try:
28 30 os.makedirs(path)
29 31 except OSError:
... ...