use realpath instead of abspath when setting up sys.path

This commit is contained in:
Damien Elmes 2010-10-02 15:14:38 +09:00
parent 1365557930
commit 49f757bd3c

2
anki
View file

@ -4,7 +4,7 @@ import os, sys
if __name__ == "__main__":
try:
modDir=os.path.dirname(os.path.abspath(__file__))
modDir=os.path.dirname(os.path.realpath(__file__))
runningDir=os.path.split(modDir)[0]
except NameError:
# py2exe