Skip to content

Commit 9d9f416

Browse files
Bonnie's note on Barista nested folder imports
1 parent fed1f15 commit 9d9f416

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

playbooks/beginning.md

+2
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,8 @@ First, we'll update the backend to handle the new version. The steps are as foll
512512
- **important**: change all relative imports (in all new files) to specify the current directory.
513513
- `import classv3` should become `from . import classv3`
514514
- `from classv3 import ClassDef` should become `from .classv3 import ClassDef`
515+
- Note from Bonnie: Beginning fall 2023 quarter, some solutions may involve nested folders. I couldn't figure out how to import files from nested folders, so I simply unnested all the files and changed the imports accordingly.
516+
515517
- **Your code will not work without this!**
516518
3. add an executor. Create `interpreters/YOUR_QUARTER/executor.py` with the code block below.
517519
4. finally, add a Flask endpoint for the API. Edit `app.py` to include the function with the code block below.

0 commit comments

Comments
 (0)