- Ensure you have conda installed (Python 3.9 version)
- Clone {PROJECT} repository
- Import environment (once):
$ conda env create -f environment.yml
- Create .env file and include:
API_KEY = ''
API_URL = 'https://ubc.instructure.com'
- Run:
- navigate to your directory
$ cd YOUR_PATH/{PROJECT-NAME}
- activate the environment (see step 3 on first run)
$ conda activate do-stuff
- run the script and follow prompts in terminal
$ python src/do-stuff.py
- navigate to your directory
Allow access to python files in src
import os
import sys
module_path = os.path.abspath(os.path.join('src/'))
if module_path not in sys.path:
sys.path.append(module_path)
import my_app