so now we can load modules dynamically. Also, the tutorials for python seem insane. Why was this simple answer not the first to pop. Ugh.
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
import os
|
||||
from libs.utils.common import *
|
||||
|
||||
|
||||
# Get the application's path (wherever weirdAAL.py is located will be the dirpath )
|
||||
dirpath = os.getcwd()
|
||||
# The actual location of this file on the filesystem is the "foldername"
|
||||
foldername = os.path.dirname(os.path.realpath(__file__))
|
||||
|
||||
all_files = list_all_files(foldername)
|
||||
|
||||
__all__ = all_files
|
||||
all_modules = list_all_files(foldername)
|
||||
|
||||
Reference in New Issue
Block a user