From f4ad8fe84e96d355c46cd94a0e30330b83861dc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Touceda?= Date: Tue, 30 Jul 2013 11:41:08 -0300 Subject: Fix path prefix for OSX --- changes/bug-path_prefix | 2 ++ src/leap/common/config/prefixers.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changes/bug-path_prefix diff --git a/changes/bug-path_prefix b/changes/bug-path_prefix new file mode 100644 index 0000000..f112eba --- /dev/null +++ b/changes/bug-path_prefix @@ -0,0 +1,2 @@ + o OSX: Fix problem with path prefix not returning the correct + value. Fixes #3273. \ No newline at end of file diff --git a/src/leap/common/config/prefixers.py b/src/leap/common/config/prefixers.py index 050d4cd..9a5b043 100644 --- a/src/leap/common/config/prefixers.py +++ b/src/leap/common/config/prefixers.py @@ -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): -- cgit v1.2.3