mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 00:12:25 -04:00
don't munge library paths when not frozen
This commit is contained in:
parent
0e557e0389
commit
e1894c16c9
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ def run():
|
||||||
sys.path.append(modDir)
|
sys.path.append(modDir)
|
||||||
# jpeg module
|
# jpeg module
|
||||||
rd = runningDir
|
rd = runningDir
|
||||||
if sys.platform.startswith("darwin"):
|
if sys.platform.startswith("darwin") and getattr(sys, 'frozen', None):
|
||||||
rd = os.path.abspath(runningDir + "/../../..")
|
rd = os.path.abspath(runningDir + "/../../..")
|
||||||
QCoreApplication.setLibraryPaths(QStringList([rd]))
|
QCoreApplication.setLibraryPaths(QStringList([rd]))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue