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,7 +23,9 @@ import sys
23 23
24 # TODO: This should be called during installation 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 try: 29 try:
28 os.makedirs(path) 30 os.makedirs(path)
29 except OSError: 31 except OSError: