summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-05-14 13:02:32 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-05-14 13:02:32 +0200
commite9cd559cf0190cce630f62bc3fbcd32834873476 (patch)
treefa705d4a3706165929c1b31335a4c3e518a8e3a6
parenta402bcefd387a1cbc848468f467086b2f3924a3d (diff)
downloadpoezio-e9cd559cf0190cce630f62bc3fbcd32834873476.tar.gz
poezio-e9cd559cf0190cce630f62bc3fbcd32834873476.tar.bz2
poezio-e9cd559cf0190cce630f62bc3fbcd32834873476.tar.xz
poezio-e9cd559cf0190cce630f62bc3fbcd32834873476.zip
config: Use lowercase for local variables.
-rw-r--r--poezio/config.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/poezio/config.py b/poezio/config.py
index d4ea7b0b..a3f974e1 100644
--- a/poezio/config.py
+++ b/poezio/config.py
@@ -507,10 +507,10 @@ def check_create_config_dir():
"""
create the configuration directory if it doesn't exist
"""
- CONFIG_HOME = environ.get("XDG_CONFIG_HOME")
- if not CONFIG_HOME:
- CONFIG_HOME = path.join(environ.get('HOME'), '.config')
- CONFIG_PATH = path.join(CONFIG_HOME, 'poezio')
+ config_home = environ.get("XDG_CONFIG_HOME")
+ if not config_home:
+ config_home = path.join(environ.get('HOME'), '.config')
+ CONFIG_PATH = path.join(config_home, 'poezio')
try:
makedirs(CONFIG_PATH)
@@ -525,10 +525,10 @@ def check_create_cache_dir():
also create the subdirectories
"""
global CACHE_DIR
- CACHE_HOME = environ.get("XDG_CACHE_HOME")
- if not CACHE_HOME:
- CACHE_HOME = path.join(environ.get('HOME'), '.cache')
- CACHE_DIR = path.join(CACHE_HOME, 'poezio')
+ cache_home = environ.get("XDG_CACHE_HOME")
+ if not cache_home:
+ cache_home = path.join(environ.get('HOME'), '.cache')
+ CACHE_DIR = path.join(cache_home, 'poezio')
try:
makedirs(CACHE_DIR)