Jul-30-2020, 10:51 PM
The easiest way to import you own modules is place the module (file) in the same directory as the module (file) that wants to use it. If the module is in another directory you have two choices; specify the path or add the directory of the file you want to import to the Python search path.
Adding paths to the Python search path can be done by modifying the path as you suggest, but if you do all your Python work in a subdirectory of F:\Python\Projects, add that to you python search path and an empty file named __init__.py files, to F:\Python\Projects and all of it's subdirectories.
Adding paths to the Python search path can be done by modifying the path as you suggest, but if you do all your Python work in a subdirectory of F:\Python\Projects, add that to you python search path and an empty file named __init__.py files, to F:\Python\Projects and all of it's subdirectories.