From e1894c16c95531a8fd26cf7b224a0ce461149789 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 9 Dec 2010 17:02:55 +0900 Subject: [PATCH] don't munge library paths when not frozen --- ankiqt/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ankiqt/__init__.py b/ankiqt/__init__.py index 6467742f0..1d38aac54 100644 --- a/ankiqt/__init__.py +++ b/ankiqt/__init__.py @@ -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]))