diff --git a/PKGBUILD b/PKGBUILD index ec79e229..46cf60ab 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,5 +1,5 @@ pkgname=python-neetbox -pkgver=0.4.5 +pkgver=0.4.6 pkgrel=1 pkgdesc="Logging/Debugging/Tracing/Managing/Facilitating long running python projects, especially a replacement of tensorboard for deep learning projects" arch=('any') diff --git a/neetbox/utils/localstorage.py b/neetbox/utils/localstorage.py index f5413165..8d3589eb 100644 --- a/neetbox/utils/localstorage.py +++ b/neetbox/utils/localstorage.py @@ -35,11 +35,14 @@ def get_app_data_directory() -> pathlib.Path: home = pathlib.Path.home() if sys.platform == "win32": - return home / "AppData/Roaming" + app_data_path = home / "AppData/Roaming" elif sys.platform == "linux": - return home / ".local/share" + app_data_path = home / ".local/share" elif sys.platform == "darwin": - return home / "Library/Application Support" + app_data_path = home / "Library/Application Support" + + return str(app_data_path) + def get_folder_size_in_bytes(folder_path): total_size = 0 @@ -49,4 +52,4 @@ def get_folder_size_in_bytes(folder_path): # Skip if it is symbolic link if not os.path.islink(fp): total_size += os.path.getsize(fp) - return total_size \ No newline at end of file + return total_size diff --git a/pyproject.toml b/pyproject.toml index 7ac1e440..7375752c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "neetbox" -version = "0.4.5" +version = "0.4.6" description = "Logging/Debugging/Tracing/Managing/Facilitating long running python projects, especially a replacement of tensorboard for deep learning projects" license = "MIT" authors = ["VisualDust ", "Lideming "]