sgmllib.py

Stefan Behnel stefan_ml at behnel.de
Mon Aug 24 05:16:38 EDT 2009


Dave Angel schrieb:
> elsa wrote:
>> python sgmllib.py "path/to/my/file.html"  .... example (1)
>
> The path in the error message simply refers to the full path string to
> your Python interpreter, and reflects %0 in your shell.  So I'd assume
> you've got a script called 'python' on your path, which spells out the
> full path name.

No, the problem is that "sgmllib.py" simply isn't in the directory where
the Python interpreter is run. When you say

	python sgmllib.py

you are instructing the Python interpreter to run the script "sgmllib.py"
*in the current directory*. According to the original post, that's clearly
not the intention of the OP.

Stefan



More information about the Python-list mailing list