public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Problem running Scripts in cygwin
       [not found] <719d28270806190808m283280eei85282dd302917818@mail.gmail.com>
@ 2008-06-19 16:20 ` Calvin Cheng
  2008-06-19 20:32   ` Dave Korn
  0 siblings, 1 reply; 2+ messages in thread
From: Calvin Cheng @ 2008-06-19 16:20 UTC (permalink / raw)
  To: cygwin

Hi,

I am having some trouble getting python to run scripts located in
"/cygdrive/c/Python25/Scripts" in cygwin. I get an error message
saying:
python: can't open file 'rst2html.py': [Errno 2] No such file or directory

I can run those same scripts in "c:/Python/Scripts" correctly, with no
error, if i am in cmd prompt environment.

It really bothers me to have to switch to cmd prompt and cygwin
alternately to get some scripts running and I would love to get this
working in cygwin if someone could point me in the right direction or
have solved a similar problem? Has anyone managed to get this working
in both cmd and cygwin?

Thank you in advance.

Regards,
Calvin

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: Problem running Scripts in cygwin
  2008-06-19 16:20 ` Problem running Scripts in cygwin Calvin Cheng
@ 2008-06-19 20:32   ` Dave Korn
  0 siblings, 0 replies; 2+ messages in thread
From: Dave Korn @ 2008-06-19 20:32 UTC (permalink / raw)
  To: cygwin

Calvin Cheng wrote on 19 June 2008 16:13:

> I am having some trouble getting python to run scripts located in
> "/cygdrive/c/Python25/Scripts" in cygwin. I get an error message
> saying:
> python: can't open file 'rst2html.py': [Errno 2] No such file or directory
> 
> I can run those same scripts in "c:/Python/Scripts" correctly, with no
> error, if i am in cmd prompt environment.

  You are using windows python, not cygwin python, so there's no way on
earth it will ever understand posix file paths.

> It really bothers me to have to switch to cmd prompt and cygwin
> alternately to get some scripts running and I would love to get this
> working in cygwin if someone could point me in the right direction or
> have solved a similar problem? Has anyone managed to get this working
> in both cmd and cygwin?

  Use cygwin python, not activestate.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-06-19 18:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <719d28270806190808m283280eei85282dd302917818@mail.gmail.com>
2008-06-19 16:20 ` Problem running Scripts in cygwin Calvin Cheng
2008-06-19 20:32   ` Dave Korn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).