Browse Source

Fix project root since script was moved

main
Isaac Slavitt 9 years ago
parent
commit
b86cae7431
  1. 2
      {{ cookiecutter.repo_name }}/src/data/make_dataset.py

2
{{ cookiecutter.repo_name }}/src/data/make_dataset.py

@ -17,7 +17,7 @@ if __name__ == '__main__':
log_fmt = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
logging.basicConfig(level=logging.INFO, format=log_fmt)
project_dir = os.path.join(os.path.dirname(__file__), os.pardir)
project_dir = os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)
dotenv_path = os.path.join(project_dir, '.env')
dotenv.load_dotenv(dotenv_path)

Loading…
Cancel
Save