Change directory to that of the .exe if in Windows.

This commit is contained in:
Andrew Resch 2007-09-24 10:37:14 +00:00
parent 44240b194e
commit 33a99c140e

View File

@ -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@'