pydoc does not like this file
Joram Agten
Joram.Agten at telindus.be
Fri Mar 24 03:28:26 EST 2006
I'm not trying to run py2exe
I'm trying to generate a html file with documentation (hence pydoc -w)
(python -w doesn't even exist)
I have a directory whith 4 files:
checkvalue.py <-- the actual source with documentation
helperfunctions.py <-- some extra functions
setup.py <-- settings file for py2exe
build.bat <-- batch file to do the actual build
when trying to build the documentation for the whole directory
(and not run it 2 times for the 2 py files that need documentation)
pydoc choces on the setup.py file
joram
-----Original Message-----
From: Jesus Rivero - (Neurogeek) [mailto:jrivero at python.org.ve]
Sent: Thursday, 23 March, 2006 19:47
To: Joram Agten
Cc: python-list at python.org
Subject: Re: pydoc does not like this file
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hmmm guess -w should be after python and not after pydoc:
python -w c:\python24\Lib\pydoc.py .\setup.py
And i also guess you are missing a command after setup.py (if you are
using py2exe, that must be the command you are looking for.) so try this:
$ python -w c:\python24\Lib\pydoc.py .\setup.py py2exe
Best Regards,
Jesús Rivero - (Neurogeek)
Joram Agten wrote:
> Hello please put me in CC
>
> I'm trying pydoc as documentation for my projects but I have the
> following problem when runnig pydoc on my whole project there is
> also a file setup.py (from py2exe) but pydoc gives me the following
> for that file:
>
> [D:\programming\trunk\tecap\joag\checkvalue]python
> c:\python24\Lib\pydoc.py -w .\setup.py problem in .\setup.py -
> SystemExit: usage: pydoc.py [global_opts] cmd1 [cmd1_opts] [cmd2
> [cmd2_opts] ...] or: pydoc.py --help [cmd1 cmd2 ...] or: pydoc.py
> --help-commands or: pydoc.py cmd --help
>
> error: option -w not recognized
>
> there are no statements or functions in that file, and also no
> documentation anybody has any idea?
>
> joram
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFEIu09dIssYB9vBoMRAmfOAJ4h9mb5PgD/ZTWdh1VDu6GMvAb5DgCfTpPz
4UgOQcwkH6VhPQpjZI15nW0=
=W2ZS
-----END PGP SIGNATURE-----
More information about the Python-list
mailing list