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:
cktricky
2018-04-05 14:18:08 -10:00
parent 61e470df94
commit 86654a6fb1
3 changed files with 17 additions and 3 deletions

View File

@@ -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