Browse Source

Change utils:get_config_path function

doc-issue-template
MrS0m30n3 9 years ago
parent
commit
b859ec210a
2 changed files with 4 additions and 4 deletions
  1. 2
      youtube_dl_gui/__init__.py
  2. 6
      youtube_dl_gui/utils.py

2
youtube_dl_gui/__init__.py

@ -49,7 +49,7 @@ from .utils import (
# Set config path and create options and log managers
config_path = os.path.join(get_config_path(), __appname__.lower())
config_path = get_config_path()
opt_manager = OptionsManager(config_path)
log_manager = None

6
youtube_dl_gui/utils.py

@ -70,8 +70,8 @@ def get_config_path():
"""Return user config path.
Note:
Windows = %AppData%
Linux = ~/.config
Windows = %AppData% + app_name
Linux = ~/.config + app_name
"""
if os.name == 'nt':
@ -79,7 +79,7 @@ def get_config_path():
else:
path = os.path.join(os.path.expanduser('~'), '.config')
return path
return os.path.join(path, __appname__.lower())
def shutdown_sys(password=None):

Loading…
Cancel
Save