Skip to content

Ability to allocate a tmp folder for files to download to #1236

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

Open
JeffreyWardman opened this issue Mar 20, 2025 · 3 comments
Open

Ability to allocate a tmp folder for files to download to #1236

JeffreyWardman opened this issue Mar 20, 2025 · 3 comments

Comments

@JeffreyWardman
Copy link
Collaborator

AWS lambda functions have only /tmp with read-write access. It'd be good to be able to set an env variable called VEDO_CACHE_DIR or similar to allow the user to set where the files should be downloaded to.

@marcomusy
Copy link
Owner

That is already implemented in settings.py

import vedo
vedo.settings.cache_directory = "mypath"

@JeffreyWardman
Copy link
Collaborator Author

I'd like to do this from an environment variable. This doesn't allow for declaring it before the module is running

@marcomusy
Copy link
Owner

Hi @JeffreyWardman
I just added an env variable VEDO_CACHE_DIR that you can set to control for that.
Also a method vedo.settings.clear_cache().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants