Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
Add proper check for test env vs production
Jules-WinnfieldX4a89cedb5fb1
diff --git a/cyberdrop_dl/managers/directory_manager.py b/cyberdrop_dl/managers/directory_manager.pyindex 404395c2c..afbd64d30 100644--- a/cyberdrop_dl/managers/directory_manager.py+++ b/cyberdrop_dl/managers/directory_manager.py@@ -1,11 +1,17 @@+import osfrom dataclasses import field, Fieldfrom pathlib import Path+import platformdirs-# APP_STORAGE: Path = Path(platformdirs.user_config_dir("Cyberdrop-DL"))-APP_STORAGE = Path("../Test-AppData-Dir")-# DOWNLOAD_STORAGE = Path(platformdirs.user_downloads_path())-DOWNLOAD_STORAGE = Path("../Test-Download-Dir")++if os.getenv("PYCHARM_HOSTED") is not None:+ """This is for testing purposes only"""+ APP_STORAGE = Path("../Test-AppData-Dir")+ DOWNLOAD_STORAGE = Path("../Test-Download-Dir")+else:+ APP_STORAGE: Path = Path(platformdirs.user_config_dir("Cyberdrop-DL"))+ DOWNLOAD_STORAGE = Path(platformdirs.user_downloads_path())class DirectoryManager: