'''
Want a program that can list directory contents, check if a file is present, etc.
'''


# print all the python files in the current directory
import os
print('# printing all python files in directory', os.getcwd())
for x in os.listdir('.'):
  if x[-3:] == '.py':
    print('# file:', x)
    print(open(x, 'r').read()) 
  #print(x[-3:], x)
  # check if x is a python file
