June 2017
Beginner to intermediate
274 pages
6h 49m
English
There are two things that turn a regular folder into a package. These are explained as follows:
The first is where is it that is, the location of the folder. Python only looks in certain places for packages and if your folder isn't in the right place, Python won't notice it.
The sys.path variable contains the list of all the places Python will look for packages. The sys.path variable is fairly sparse, but user configuration can make it much more extensive as shown in the following screenshot:

Notice that the first entry in the list is an empty string. This stands for the current working directory.
Read now
Unlock full access