So i have a structure like this:
main_folder
├── main.py
├── folder1
├── function1.py
└── function2.py
└── ...
└── function20.py
and I want to import all the files from folder1 into main.py
It does not work when i write from folder1 import *
, but it works when I specifically write from folder1 import function1
. Considering I have many scripts under folder1
, I would prefer to have them all imported without type each name out. Is there any way to do this (like import *
)?