diff options
author | kali <kali@leap.se> | 2013-01-31 05:47:03 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2013-01-31 06:06:37 +0900 |
commit | 7d279f8ddf3c0480716519b4b37943ddc6458519 (patch) | |
tree | fa40e69eff11a2d89dcea9c0da21605ede35e990 | |
parent | aa3bb7b7a99204c72940bbb692571df17f252be2 (diff) |
add underscore to the $HOME pattern exception
-rw-r--r-- | src/leap/base/config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/base/config.py b/src/leap/base/config.py index 6a13db7d..d796bcf1 100644 --- a/src/leap/base/config.py +++ b/src/leap/base/config.py @@ -282,7 +282,7 @@ def get_config_dir(): @rtype: string """ home = os.path.expanduser("~") - if re.findall("leap_tests-[a-zA-Z0-9]{6}", home): + if re.findall("leap_tests-[_a-zA-Z0-9]{6}", home): # we're inside a test! :) return os.path.join(home, ".config/leap") else: |