Technology

How to import all the files from a directory using Python

      STEP 1 : Execute the following command in the folder from which you need to import files from: $ touch __init__.py Or simply create a blank file __init__.py in the folder. STEP2 : Prepare your __init__.py. The idea is to enable __init__ to know about all the files of your directory. Paste… Continue reading How to import all the files from a directory using Python