# list_py_file_names_all_folders.py


import os


# get current working directory

currentFolder = os.getcwd()


# walk through all folders and subfolders

for dirpath, dirnames, filenames in os.walk(currentFolder):

    # check each file in current folder

    for file in filenames:

        if file.endswith('.py'):

            print(file)


input('')


##


'''

listdir.py

list_py_file_names_all_folders.py

listdir_endswith.py

test.py

'''


# Dedicated to God the Father

# All Rights Reserved Christopher Andrew Topalian Copyright 2000-2024

# https://github.com/ChristopherTopalian

# https://github.com/ChristopherAndrewTopalian

# https://sites.google.com/view/CollegeOfScripting