Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing issue with reaonly filesystems #2357

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion splink/internals/datasets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ class _SplinkDataSetsMeta(type):
cache_dir = _cache_dir

def __new__(cls, clsname, bases, attrs, datasets):
cls.cache_dir.mkdir(exist_ok=True)
attributes = {}
repr_text = "splink_datasets object with datasets:"
for dataset_meta in datasets:
Expand Down Expand Up @@ -185,6 +184,7 @@ def class_attribute_factory(
cls, dataset_name, url, rows, unique_entities, description, data_format
):
def lazyload_data(self):
cls.cache_dir.mkdir(exist_ok=True)
file_loc = cls.cache_dir / f"{dataset_name}.{data_format}"
if not cls.datafile_exists(file_loc):
print(f"downloading: {url}") # noqa: T201
Expand Down
Loading