I am looking at some source code in Python and see that it is importing the genericpath module. Where can I find this module?
import genericpath
from genericpath import *
Searching for genericpath is turning up nothing...
I am looking at some source code in Python and see that it is importing the genericpath module. Where can I find this module?
import genericpath
from genericpath import *
Searching for genericpath is turning up nothing...
To check where module resides you may use __file__ attribute.
>>> import genericpath
>>> genericpath.__file__
'C:\\Python27\\lib\\genericpath.pyc'
genericpath contains common implementation for os.path modules (ntpath, posixpath). Normally, you should never use any of these names explicitly, os.path will dispatch all requests to correct underlying library.