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

Get rgtdata folder path from environment variable #33

Closed
fabio-t opened this issue Aug 22, 2017 · 1 comment
Closed

Get rgtdata folder path from environment variable #33

fabio-t opened this issue Aug 22, 2017 · 1 comment
Assignees

Comments

@fabio-t
Copy link
Member

fabio-t commented Aug 22, 2017

Right now, we store a file inside the actual installation directory of rgt. This file contains the rgtdata folder path, defaulting to the home directory.

This is very brittle, and also requires a custom setup.py which causes further problems with pip (when using global options).

A further, big problem of this approach is the following: if RGT is installed on a shared computer (eg, cluster/server), then only one shared rgtdata folder is allowed for all users.

A better approach is to check an environment variable RGTDATA. If not set, default to home directory. If set, use that one.

@fabio-t fabio-t self-assigned this Aug 22, 2017
@chaochungkuo
Copy link
Member

chaochungkuo commented Aug 22, 2017 via email

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