Skip to content

Commit

Permalink
Use local cache dir for resource processor
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Jun 13, 2024
1 parent 5d8d8e7 commit 3f831d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion odds/backend/processor/resource_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@


TMP_DIR = os.environ.get('RESOURCE_PROCESSOR_CACHE_DIR') or CACHE_DIR / 'resource-processor-temp'
TMP_DIR.mkdir(exist_ok=True, parents=True)
try:
TMP_DIR.mkdir(exist_ok=True, parents=True)
except:
pass
TMP_DIR = str(TMP_DIR)

class ResourceProcessor:
Expand Down

0 comments on commit 3f831d5

Please sign in to comment.