mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 09:58:39 +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('.')))
|
CLIENT_VERSION = "".join(PROGRAM_VERSION.split('.'))+"0"*(4 - len(PROGRAM_VERSION.split('.')))
|
||||||
import platform
|
import platform
|
||||||
if platform.system() == "Windows":
|
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:
|
else:
|
||||||
CONFIG_DIR = xdg.BaseDirectory.save_config_path('deluge')
|
CONFIG_DIR = xdg.BaseDirectory.save_config_path('deluge')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue