I am new to Python and have a problem that I don't know how to solve
I need to write a module (directory C:/Python
) that is able to import and execute all .py
files that are located in some other folder (for example C:/Python/Dir
).
I know how to access to directory (sys.path.append('C:\\Python26\\Dir')
) but how do I make a loop that is able to import all .py
files from this folder?