[Tutor] Cal command in python...

Simon Brunning simon at brunningonline.net
Thu Nov 2 14:00:21 CET 2006


On 11/2/06, Kent Johnson <kent37 at tds.net> wrote:
> In the Python standard library. Much of the library is written in Python
> and supplied as source. On Windows it will be something like
> C:\Python25\Lib\calendar.py. On other platforms I don't know the path
> but it will be part of the Python installation.

If you do:

import calendar
print calendar.__file__

That will tell you where it is on your system. Works for any module.

-- 
Cheers,
Simon B
simon at brunningonline.net
http://www.brunningonline.net/simon/blog/


More information about the Tutor mailing list