I have a folder of modules called commands.
these modules each have a unique named function in them.
From the main directory, the one with the commands folder, I have a main.py
I can import all the modules with from commands import *
Is there a way to import all the functions inside all the modules without importing them individually. Even using a for loop would be fine.
from commands import *fail? That sounds like it should work. Also: is there an__init__.pyfile in the commands folder?somemodule.somefunction()instead of just being able to callsomefunction()?importstatement, so I don't think this is possible.