From 08d56740a5ca687e57c385ac3ff0e41cbdfc2f89 Mon Sep 17 00:00:00 2001 From: paulojamorim Date: Fri, 2 Oct 2009 14:22:25 +0000 Subject: [PATCH] FIX: Changes made to fix bug in MS Windows --- invesalius/invesalius.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/invesalius/invesalius.py b/invesalius/invesalius.py index 5aa44ec..163b575 100755 --- a/invesalius/invesalius.py +++ b/invesalius/invesalius.py @@ -23,7 +23,9 @@ import sys # TODO: This should be called during installation # ---------------------------------------------------------------------- -path = os.path.join(os.getenv("HOME"), ".invesalius", "presets") + +path = os.path.join(os.path.expanduser('~'), ".invesalius", "presets") +print path try: os.makedirs(path) except OSError: -- libgit2 0.21.2