Reverse config path lookup
Esse commit está contido em:
pai
b38b4238f3
commit
72ab066c10
1 arquivos alterados com 1 adições e 1 exclusões
|
@ -39,7 +39,7 @@ def save(conf):
|
|||
def get_path(check_write=False):
|
||||
"""Find config path
|
||||
"""
|
||||
for loc in "/etc/realms-wiki", os.path.expanduser("~"), os.curdir:
|
||||
for loc in os.curdir, os.path.expanduser("~"), "/etc/realms-wiki":
|
||||
if not loc:
|
||||
continue
|
||||
path = os.path.join(loc, "realms-wiki.json")
|
||||
|
|
Carregando…
Adicionar tabela
Adicionar um link
Referência em uma nova issue