Fix path prefix for OSX
authorTomás Touceda <chiiph@leap.se>
Tue, 30 Jul 2013 14:41:08 +0000 (11:41 -0300)
committerTomás Touceda <chiiph@leap.se>
Tue, 30 Jul 2013 14:41:08 +0000 (11:41 -0300)
changes/bug-path_prefix [new file with mode: 0644]
src/leap/common/config/prefixers.py

diff --git a/changes/bug-path_prefix b/changes/bug-path_prefix
new file mode 100644 (file)
index 0000000..f112eba
--- /dev/null
@@ -0,0 +1,2 @@
+  o OSX: Fix problem with path prefix not returning the correct
+    value. Fixes #3273.
\ No newline at end of file
index 050d4cd..9a5b043 100644 (file)
@@ -95,7 +95,7 @@ class DarwinPrefixer(Prefixer):
         config_dir = BaseDirectory.xdg_config_home
         if not standalone:
             return config_dir
-        return os.getenv(os.getcwd(), "config")
+        return os.path.join(os.getcwd(), "config")
 
 
 class WindowsPrefixer(Prefixer):