mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 15:38:43 +00:00
fix last
This commit is contained in:
parent
5929d1ad53
commit
fd5f99630f
1 changed files with 1 additions and 4 deletions
|
@ -39,14 +39,11 @@ CLIENT_VERSION = "".join(PROGRAM_VERSION.split('.'))+"0"*(4 - len(PROGRAM_VERSIO
|
||||||
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')
|
||||||
|
INSTALL_PREFIX = ''
|
||||||
if not os.path.exists(CONFIG_DIR):
|
if not os.path.exists(CONFIG_DIR):
|
||||||
os.mkdir(CONFIG_DIR)
|
os.mkdir(CONFIG_DIR)
|
||||||
else:
|
else:
|
||||||
CONFIG_DIR = xdg.BaseDirectory.save_config_path('deluge')
|
CONFIG_DIR = xdg.BaseDirectory.save_config_path('deluge')
|
||||||
|
|
||||||
if hasattr(sys, "frozen"):
|
|
||||||
INSTALL_PREFIX = ''
|
|
||||||
else:
|
|
||||||
# the necessary substitutions are made at installation time
|
# the necessary substitutions are made at installation time
|
||||||
INSTALL_PREFIX = '@datadir@'
|
INSTALL_PREFIX = '@datadir@'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue