mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 15:08:40 +00:00
Change directory to that of the .exe if in Windows.
This commit is contained in:
parent
44240b194e
commit
33a99c140e
1 changed files with 2 additions and 1 deletions
|
@ -53,7 +53,8 @@ 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…
Add table
Add a link
Reference in a new issue