Running python from cygwin with .py-extension --- import: not found
nhv at yahoo.com
nhv at yahoo.com
Thu Sep 14 22:58:06 EDT 2000
More information about the Python-list mailing list
Thu Sep 14 22:58:06 EDT 2000
- Previous message (by thread): Running python from cygwin with .py-extension --- import: not found
- Next message (by thread): JPython Syntax errors
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In article <39C0E8A6.B93F3CBD at yahoo.com>, Olav <OlavB at yahoo.com> wrote: > > > > > It also works, though both this and the "#"-method breaks when I try to run > scripts on my D-drive. > Cygwin will give Python a path starting with //D, which it can't find... (My > current drve is then the > C-drive, and Python.exe is also on the C-drive. > > Anybody got a way around that? I bet you are trying to run a Win32 python.exe in a Cygwin shell get the source and compile it with Cygwin Then when you are in a Cygwin shell you will pick up the Cygwin Python which 'knows' about Cygwin mounts Unix stlye paths etc. Distributed Windows Python C:\TEMP>python Python 1.5.2 (#0, May 29 2000, 13:52:29) [MSC 32 bit (Intel)] on win32 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import os >>> os.sep '\\' Cygwin compiled Python NHV:/c/temp> python Python 2.0b1 (#51, Aug 28 2000, 14:33:59) [GCC 2.95.2 19991024 (release-2)] on cygwin_98-4.101 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam Copyright 1995-2000 Corporation for National Research Initiatives (CNRI) >>> import os >>> os.sep '/' Cygwin-g-ly yours Norman Sent via Deja.com http://www.deja.com/ Before you buy.
- Previous message (by thread): Running python from cygwin with .py-extension --- import: not found
- Next message (by thread): JPython Syntax errors
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list