How to import python file(.py) into a main python file
问题 is there a way to import multiple python files into a main python file? I have a bunch of py files and each one has to run in the main python file and the data are saved into a json file. This is what I tried and it gave me an error. import light.py as light Error: Traceback (most recent call last): File "<frozen importlib._bootstrap>", line 2218, in _find_and_load_unlocked AttributeError: 'module' object has no attribute '__path__' During handling of the above exception, another exception