Call-for-Code-for-Racial-Justice / Call-for-Code-for-Racial-Justice/TakeTwo-WebAPI

Load python modules correctly

Aperta
#46 1 commento 0 reazioni 1 assegnatario Assegnata a @shubham599 Vedi su GitHub
bug stale
Lingua principale
Python
Stelle
8
Fork
8
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**Describe the bug**
Finish #45. Please see here on how to load multiple files - https://fastapi.tiangolo.com/it/tutorial/bigger-applications/

Basically, you need empty __init__.py file to tell python that the folder is a module. You can then simply load as import root_folder.sub_folder.sub_folder.filename.

Context: https://github.com/Call-for-Code-for-Racial-Justice/TakeTwo-WebAPI/pull/45/files#r817986839

FYI @demilolu

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.