[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How python knows where non standard libraries are stored ?

ast <none at> writes:
> I looked for windows environment variables to tell python
> how to fill sys.path at startup but I didn't found.
> So how does it work ?

Read the (so called) docstring at the beginning of the module

Either locate the module source in the file system
and read it in an editor
or in an interactive Python do:

   import site