From 301a4c5ba4ad74149f19e48695a74b2441171afc Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Fri, 5 Apr 2024 09:22:08 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F=20Fixed=20check=20if=20ap?= =?UTF-8?q?p=20is=20running=20from=20source=20code.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tidal_dl_ng/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tidal_dl_ng/__init__.py b/tidal_dl_ng/__init__.py index b7445d1..5fb660b 100644 --- a/tidal_dl_ng/__init__.py +++ b/tidal_dl_ng/__init__.py @@ -97,14 +97,14 @@ def is_dev_env() -> bool: package_name: str = name_package() result: bool = False - # Check if package is running from source code == dev mode + # Check if package is running from source code == dev mode # If package is not running in PyInstaller environment. - if getattr(sys, "frozen", True) and not hasattr(sys, "_MEIPASS"): + if not getattr(sys, "frozen", False) and not hasattr(sys, "_MEIPASS"): try: importlib.metadata.version(package_name) except: # If package is not installed - result = False + result = True return result