mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-13 21:14:55 +00:00
xdg.BaseDirectory fix for windows
This commit is contained in:
parent
11f033db48
commit
692cd471f1
@ -35,8 +35,12 @@ PROGRAM_NAME = "Deluge"
|
|||||||
PROGRAM_VERSION = "0.5.5.95"
|
PROGRAM_VERSION = "0.5.5.95"
|
||||||
|
|
||||||
CLIENT_CODE = "DE"
|
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('.')))
|
||||||
CONFIG_DIR = xdg.BaseDirectory.save_config_path('deluge')
|
import platform
|
||||||
|
if platform.system() == "Windows":
|
||||||
|
CONFIG_DIR = os.path.join(os.path.expanduser("~/"), 'deluge')
|
||||||
|
else:
|
||||||
|
CONFIG_DIR = xdg.BaseDirectory.save_config_path('deluge')
|
||||||
|
|
||||||
# the necessary substitutions are made at installation time
|
# the necessary substitutions are made at installation time
|
||||||
INSTALL_PREFIX = '@datadir@'
|
INSTALL_PREFIX = '@datadir@'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user