Skip to content

Commit

Permalink
Improve dealing with location of cache (#48)
Browse files Browse the repository at this point in the history
Moved cache from cwd to user profile
  • Loading branch information
joosthooz authored and austin3dickey committed Aug 30, 2022
1 parent 746940c commit a4e9ecd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions datalogistik/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,17 @@

import os
import pathlib
import platform

debug = True

default_repo_file = str(pathlib.Path(__file__).parent.parent / "repo.json")
default_cache_location = "./"
cache_dir_name = "datalogistik_cache"
if platform.system() == "Windows":
default_cache_location = os.getenv("LOCALAPPDATA")
cache_dir_name = "datalogistik_cache"
else: # Unix (Linux or Mac)
default_cache_location = os.getenv("HOME")
cache_dir_name = ".datalogistik_cache"
metadata_filename = "datalogistik_metadata.ini"
supported_formats = ["parquet", "csv"]
hashing_chunk_size = 16384
Expand Down

0 comments on commit a4e9ecd

Please sign in to comment.