mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
use realpath instead of abspath when setting up sys.path
This commit is contained in:
parent
1365557930
commit
49f757bd3c
1 changed files with 1 additions and 1 deletions
2
anki
2
anki
|
@ -4,7 +4,7 @@ import os, sys
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
try:
|
try:
|
||||||
modDir=os.path.dirname(os.path.abspath(__file__))
|
modDir=os.path.dirname(os.path.realpath(__file__))
|
||||||
runningDir=os.path.split(modDir)[0]
|
runningDir=os.path.split(modDir)[0]
|
||||||
except NameError:
|
except NameError:
|
||||||
# py2exe
|
# py2exe
|
||||||
|
|
Loading…
Reference in a new issue