as far as I can tell, this works except that I am getting errors because of python 2.7 and printing
This commit is contained in:
@@ -1 +1,11 @@
|
||||
import os
|
||||
list_of_files = os.listdir('.')
|
||||
|
||||
arry = []
|
||||
|
||||
for file in list_of_files:
|
||||
filename_and_ext = os.path.splitext(file)
|
||||
if filename_and_ext[1] == ".py":
|
||||
arry.append(filename_and_ext[0])
|
||||
|
||||
__all__ = arry
|
||||
|
||||
Reference in New Issue
Block a user