minor fix

This commit is contained in:
Miroslav Stampar 2011-12-14 14:57:35 +00:00
parent 8793fbc9f5
commit 12d7c4fe3c

View File

@ -53,10 +53,7 @@ def modulePath():
using py2exe
"""
if weAreFrozen():
return os.path.dirname(getUnicode(sys.executable, sys.getfilesystemencoding()))
else:
return os.path.dirname(os.path.realpath(__file__))
return os.path.dirname(getUnicode(sys.executable if weAreFrozen() else __file__, sys.getfilesystemencoding()))
def main():
"""