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]))