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:
@@ -7,6 +7,6 @@ def list_all_files(directory):
|
||||
|
||||
for file in list_of_files:
|
||||
filename_and_ext = os.path.splitext(file)
|
||||
if filename_and_ext[1] == ".py":
|
||||
if (filename_and_ext[1] == ".py") and not (filename_and_ext[0].startswith("__")):
|
||||
array.append(filename_and_ext[0])
|
||||
return array
|
||||
|
||||
Reference in New Issue
Block a user