diff options
| author | Robert Honz <exislow+github@gmail.com> | 2024-04-05 09:22:08 +0200 |
|---|---|---|
| committer | Robert Honz <exislow+github@gmail.com> | 2024-04-05 09:22:08 +0200 |
| commit | 301a4c5ba4ad74149f19e48695a74b2441171afc (patch) | |
| tree | 50f90730a2a0df63c64cd2f201a4a292b8a78204 | |
| parent | 22bd6221f7b5298458137753086b1f08ec4540ad (diff) | |
| download | tidal-dl-ng-301a4c5ba4ad74149f19e48695a74b2441171afc.tar.gz | |
🛠️ Fixed check if app is running from source code.
| -rw-r--r-- | tidal_dl_ng/__init__.py | 6 |
1 files 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 |
