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

Home directory has no space for .isochrones #170

Open
awallace142857 opened this issue May 16, 2022 · 3 comments
Open

Home directory has no space for .isochrones #170

awallace142857 opened this issue May 16, 2022 · 3 comments

Comments

@awallace142857
Copy link

Hi,

I have successfully installed isochrones (I think) on a remote server and have tried running nosetests. This fails because it attempts to save data to ~/.isochrones but my home directory has very limited space. Is there a way of changing the default directory for .isochrones?

@mgwalkergit
Copy link

mgwalkergit commented May 20, 2022

I have exactly the same problem.

I may have just worked around it by editing the 'isochrones/config.py' file (installed by pip per the installation instructions). I changed

os.path.expanduser(os.path.join("~", ".isochrones"))

to

"my_path/.isochrones"

where my_path is the directory, other than /home, where I want .isochrones to be written.

So far so good, but hopefully that didn't break something else...

@timothydmorton
Copy link
Owner

Rather than changing the source code (which will work for you, but isn't an ideal solution), you can also define an ISOCHRONES environment variable; e.g.

export ISOCHRONES=/path/to/dir/with/more/space/.isochrones

@warrickball
Copy link

Another solution that I've used is to create a symbolic link from ~/.isochrones to wherever you want the data to go. I've used the same trick for other packages that create local caches.

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

No branches or pull requests

4 participants