mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
win config dir touchup
This commit is contained in:
parent
1ac7e0eaab
commit
26dd7a83cf
1 changed files with 3 additions and 1 deletions
|
@ -38,7 +38,9 @@ CLIENT_CODE = "DE"
|
|||
CLIENT_VERSION = "".join(PROGRAM_VERSION.split('.'))+"0"*(4 - len(PROGRAM_VERSION.split('.')))
|
||||
import platform
|
||||
if platform.system() == "Windows":
|
||||
CONFIG_DIR = os.path.join(os.path.expanduser("~/"), 'deluge')
|
||||
CONFIG_DIR = os.path.join(os.path.expanduser("~\\"), 'deluge')
|
||||
if not os.path.exists(CONFIG_DIR):
|
||||
os.mkdir(CONFIG_DIR)
|
||||
else:
|
||||
CONFIG_DIR = xdg.BaseDirectory.save_config_path('deluge')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue