#how can i import all packages in a folder and maybe load them onto a list

9 messages · Page 1 of 1 (latest)

queen ivy
#

like, how can i import grouped and ping from commands folder and store them in a list so i can keep track of them

quick steppe
#

go list ./...

queen ivy
#

Through code

#

Something similar to

l=[]
for file in os.listdir("./a"):
  l.append(__import__(file))

In python

quick steppe
#

install what

#

just have them be in the same package

queen ivy
#

ig autocorrect made it to install