浏览代码

use default XDG_CONFIG_HOME if it exists

Signed-off-by: Emmanuel Perrier <ealprr@gmail.com>
pull/12/head
Emmanuel Perrier 9 年前
父节点
当前提交
f4593f15e9
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      gitup/config.py

+ 2
- 1
gitup/config.py 查看文件

@@ -13,7 +13,8 @@ from colorama import Fore, Style
__all__ = ["get_bookmarks", "add_bookmarks", "delete_bookmarks",
"list_bookmarks"]

CONFIG_FILENAME = os.path.join(os.path.expanduser("~"), ".gitup")
CONFIG_FILENAME = os.path.join(os.path.expanduser('~/.config'), '.gitup') if \
os.path.exists(os.path.expanduser('~/.config')) else os.path.join(os.path.expanduser('~'), '.gitup')

YELLOW = Fore.YELLOW + Style.BRIGHT
RED = Fore.RED + Style.BRIGHT


正在加载...
取消
保存