Skip to content

Commit

Permalink
use global dir if available
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedor Baart committed Oct 12, 2017
1 parent 548a6e9 commit 01e0e2e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion stathakis/config.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
# config defaults
NCEP_DATA_DIR = 'data/noaa/ncep'
import pathlib

if pathlib.Path('/data/noaa').exists():
NCEP_DATA_DIR = '/data/noaa/ncep'
else:
NCEP_DATA_DIR = 'data/noaa/ncep'

0 comments on commit 01e0e2e

Please sign in to comment.