Line separators

0 views
Skip to first unread message

Jean

unread,
Nov 29, 2008, 11:30:31 AM11/29/08
to pympler-dev
A few days ago, I noticed that running PyChecker rom run.py -p worked
just fine. But it was impossible to run ./tools/pychok.py <file>.
The error message was very cryptic ": No such file or directory".
This is MacOS.

Trying any number of things (including adding mode spaces in the first
line #! line) did not make any difference. Finally, I noticed that
the line separator was '\r\n', the one for Windows**. Changing that
to '\n' fixed the problem.

/Jean

**) It turns out that recipes downloaded from ActiveState have Windows
line separators, always.

Robert Schuppenies

unread,
Nov 29, 2008, 11:44:15 AM11/29/08
to pympl...@googlegroups.com
I was already wondering about this checkin :). Both are subtle
issues which are hard to identify. Thanks for finding this.

Jean Brouwers

unread,
Nov 29, 2008, 12:55:39 PM11/29/08
to pympl...@googlegroups.com
This was nasty, indeed. I did not check what setup.py does when
making or installing a distribution.

/Jean

PS) Check the change I made to setup.py. the .common_usage attr only
exists since Python 2.5.
Reply all
Reply to author
Forward
0 new messages