Getting Python to run Python Scripts in cygwin

2008-06-19 Thread Calvin Cheng
Hi guys,

This may be a cygwin issue but I was hoping to get some answers here
as well if someone has fixed this problem before.

Basically, I am able to run "python .py" python files in
command prompt.  Unfortunately, I can't seem to get it to work in
cygwin.  I always get an error that says:
python: can't open file '.py': [Errno 2] No such file or directory

I have looked at my environment variables and it seems to be correct.

Would be grateful if someone who has gotten python to work correctly
on cygwin could point me in the right direction.

It is very cumbersome switching back-and-forth between command prompt
and cygwin just to run python scripts.

Thank you in advance,
Calvin
--
http://mail.python.org/mailman/listinfo/python-list


Docutils rst2html.py gives Unknown Directive type "toctree"

2008-06-19 Thread Calvin Cheng
Hi,

I am attempting to convert a bunch of .txt files into html using the
docutils package.

It works for most of the txt files except for the index.txt file which
gives 2 errors:
(1)  Unknown Directive type "toctree"
(2) (ERROR/3) Unknown interpreted text role "ref".

Any idea how I can fix this?

Would be glad if someone who is familiar with docutils could point me
in the right direction.

Thank you,
Calvin
--
http://mail.python.org/mailman/listinfo/python-list