![]() ![]() To use any function stored in utils.py you attempt to write the following import statement into the main.py files of and : from common.utils import. You (want to) store this shared code inside a utils.py file that sits in a third directory. Where both sub-projects and have a main.py file that use similar code. ![]() You have the following project structure: ├── src ├── common ├── _init_.py └── utils.py ├── config └── requirements.txt ├── project1 ├── _init_.py └── main.py ├── project2 ├── _init_.py └── main.py ├── README.md Photo by AbsolutVision on Unsplash The Problem ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |