config: Use lowercase for local variables.
This commit is contained in:
parent
a402bcefd3
commit
e9cd559cf0
1 changed files with 8 additions and 8 deletions
|
@ -507,10 +507,10 @@ def check_create_config_dir():
|
||||||
"""
|
"""
|
||||||
create the configuration directory if it doesn't exist
|
create the configuration directory if it doesn't exist
|
||||||
"""
|
"""
|
||||||
CONFIG_HOME = environ.get("XDG_CONFIG_HOME")
|
config_home = environ.get("XDG_CONFIG_HOME")
|
||||||
if not CONFIG_HOME:
|
if not config_home:
|
||||||
CONFIG_HOME = path.join(environ.get('HOME'), '.config')
|
config_home = path.join(environ.get('HOME'), '.config')
|
||||||
CONFIG_PATH = path.join(CONFIG_HOME, 'poezio')
|
CONFIG_PATH = path.join(config_home, 'poezio')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
makedirs(CONFIG_PATH)
|
makedirs(CONFIG_PATH)
|
||||||
|
@ -525,10 +525,10 @@ def check_create_cache_dir():
|
||||||
also create the subdirectories
|
also create the subdirectories
|
||||||
"""
|
"""
|
||||||
global CACHE_DIR
|
global CACHE_DIR
|
||||||
CACHE_HOME = environ.get("XDG_CACHE_HOME")
|
cache_home = environ.get("XDG_CACHE_HOME")
|
||||||
if not CACHE_HOME:
|
if not cache_home:
|
||||||
CACHE_HOME = path.join(environ.get('HOME'), '.cache')
|
cache_home = path.join(environ.get('HOME'), '.cache')
|
||||||
CACHE_DIR = path.join(CACHE_HOME, 'poezio')
|
CACHE_DIR = path.join(cache_home, 'poezio')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
makedirs(CACHE_DIR)
|
makedirs(CACHE_DIR)
|
||||||
|
|
Loading…
Reference in a new issue