initial commit

This commit is contained in:
walkews 2017-05-19 16:02:30 -05:00
parent 95d161f57b
commit dd9a32ca88
12 changed files with 7620 additions and 0 deletions

25
app/settings.py Normal file
View file

@ -0,0 +1,25 @@
import os
import sys
from matplotlib import rcParams
rcParams['font.family'] = 'Tunga'
try:
root_dir = os.path.dirname(os.path.abspath(os.path.dirname(__file__)))
except NameError:
root_dir = os.path.abspath(os.path.dirname(_dh[0]))
except NameError:
root_dir = os.path.abspath(os.path.dirname(os.getcwd))
reports_dir = os.path.join(root_dir, 'reports')
data_dir = os.path.join(root_dir, 'data')
raw_data_dir = os.path.join(root_dir, 'data', 'raw')
processed_data_dir = os.path.join(root_dir, 'data', 'processed')
src_dir = os.path.join(root_dir, 'src')
analysis_dir = os.path.dirname(root_dir)
static_dir = os.path.join(src_dir, 'static')
sys.path.append(analysis_dir)
sys.path.append(root_dir)
sys.path.append(src_dir)