import os
d = os.path.dirname(os.path.realpath(__file__))
real_dir = os.listdir()
print(d, real_dir)
def checkrun(value, dir):
for i in dir:
i.endswith(f'.{value}')
if i.endswith(f'.{value}'):
print('Oh no, we fucked up..')
print(checkrun('txt', real_dir))