Closed shirgoldbird closed 3 years ago
The working directory for the build_site.py and delete_autogenerated_files.py is assumed to be the root of the repository, since that's where the workflow's PWD starts at.
It'd probably be more elegant to just change everything so that scripts can be run from the scripts
directory. This will need a change to the main.yaml file to cd into that directory first.
I get an error when running
python src/scripts/delete_autogenerated_files.py
:I believe this is because the src folder isn't added to my Python path. I fixed the problem by adding this to the top of
delete_autogenerated_files.py
:Not sure if there's a more elegant way!