bearing / dosenet

Code for the Berkeley RadWatch dosimeter network
https://radwatch.berkeley.edu/dosenet
4 stars 0 forks source link

Add environment path vars #133

Open jccurtis opened 7 years ago

jccurtis commented 7 years ago

I think the following env vars should be added:

These can be imported in python as follows:

import os
DOSENETREPO = os.environ['DOSENETREPO']

A standard way to do this is in the package __init__ to assure consistency when using scripts/imports. Additionally makeWebserverData.sh has hardcoded paths to execute making it impossible to test without changing the primary git repo on the server.