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

Temporary directory option #53

Closed
mdcollins05 opened this issue Jan 30, 2018 · 3 comments
Closed

Temporary directory option #53

mdcollins05 opened this issue Jan 30, 2018 · 3 comments
Assignees
Labels

Comments

@mdcollins05
Copy link

Would it be possible to have a setting for the temporary file(s) location? The reason I ask is because I use this script on a machine with very little local disk space and I access the files over NFS. I haven't run into an issue yet but I'm only testing with smaller files at the moment.

Thanks for the awesome script, I've been looking for something like this for a while now.
Sorry for opening multiple issues in the last day or so!

@slhck slhck added the question label Jan 30, 2018
@slhck slhck self-assigned this Jan 30, 2018
@slhck
Copy link
Owner

slhck commented Jan 30, 2018

Sure, this is already possible by setting the respective environment variable (TMP, TEMP or TEMPDIR):

https://docs.python.org/3/library/tempfile.html#tempfile.gettempdir

Let me know if that doesn't work for you. I'll document it in the README.

@slhck
Copy link
Owner

slhck commented Jan 30, 2018

Done. Note that the directory specified by the environment variable has to exist — otherwise it'll fall back to the system defaults.

@slhck slhck closed this as completed Jan 30, 2018
@mdcollins05
Copy link
Author

Thanks! I didn't realize that was an option.

Cheers!

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

No branches or pull requests

2 participants