sys.path.append python 1

sys.path.append python

sys.path is a built-in variable within the sys module. 
It contains a list of directories that the interpreter will search 
in for the required module.

APPENDING PATH- append() is a built-in function of sys module that can be 
used with path variable to add a specific path for interpreter to search. 
The following example shows how this can be done.

import sys

Here is what the above code is Doing:
1. The sys module is imported.
2. The path variable is appended with the path of the directory
where the module is located.
3. The module is imported.

Similar Posts