You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get an error when running python src/scripts/delete_autogenerated_files.py:
Traceback (most recent call last):
File "/Users/shirgoldberg/Documents/lastresortbeta/src/scripts/delete_autogenerated_files.py", line 1, in <module>
from src.scripts.build_site import delete_output_file_space
ModuleNotFoundError: No module named 'src'
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:
import sys
sys.path.insert(0, './src')
Not sure if there's a more elegant way!
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: