venture of iit bombay vjti alumni the from import statement it is also possible to import all names from module into the current namespace by using the following import statement from modname import this provides an easy way to import all the items from module into the current namespacehoweverthis statement should be used sparingly locating modules when you import modulethe python interpreter searches for the module in the following sequences the current directory if the module isn' foundpython then searches each directory in the shell variable pythonpath if all else failspython checks the default path on unixthis default path is normally /usr/local/lib/pythonthe module search path is stored in the system module sys as the sys pathvariable the sys path variable contains the current directorypythonpathand the installation-dependent default the pythonpath variable