don't munge library paths when not frozen

This commit is contained in:
Damien Elmes 2010-12-09 17:02:55 +09:00
parent 0e557e0389
commit e1894c16c9

View file

@ -123,7 +123,7 @@ def run():
sys.path.append(modDir)
# jpeg module
rd = runningDir
if sys.platform.startswith("darwin"):
if sys.platform.startswith("darwin") and getattr(sys, 'frozen', None):
rd = os.path.abspath(runningDir + "/../../..")
QCoreApplication.setLibraryPaths(QStringList([rd]))