Skip to content
Snippets Groups Projects
Commit ca946c66 authored by Joscha Schmiedt's avatar Joscha Schmiedt
Browse files

Fix UpdateCache default file path on Windows

/tmp does not exist on Windows (issue #136)
parent cbc8472b
No related branches found
No related tags found
2 merge requests!128MNT: Added a warning when column metadata is not configured, and a better...,!124Fix unit tests on Windows
Pipeline #58236 passed
...@@ -338,7 +338,7 @@ class UpdateCache(AbstractCache): ...@@ -338,7 +338,7 @@ class UpdateCache(AbstractCache):
return 3 return 3
def get_default_file_name(self): def get_default_file_name(self):
return "/tmp/crawler_update_cache.db" return os.path.join(tempfile.gettempdir(), "crawler_update_cache.db")
@staticmethod @staticmethod
def get_previous_version(cont): def get_previous_version(cont):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment