mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-19 15:59:57 +00:00
Change directory to that of the .exe if in Windows.
This commit is contained in:
parent
44240b194e
commit
33a99c140e
@ -54,6 +54,7 @@ else:
|
|||||||
import sys
|
import sys
|
||||||
if hasattr(sys, "frozen"):
|
if hasattr(sys, "frozen"):
|
||||||
INSTALL_PREFIX = ''
|
INSTALL_PREFIX = ''
|
||||||
|
os.chdir(os.path.dirname(unicode(sys.executable, sys.getfilesystemencoding( ))))
|
||||||
else:
|
else:
|
||||||
# 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