Re: PBXOutput=ReplaceSelection question [SOLVED]
Re: PBXOutput=ReplaceSelection question [SOLVED]
- Subject: Re: PBXOutput=ReplaceSelection question [SOLVED]
- From: Prachi Gauriar <email@hidden>
- Date: Mon, 10 Apr 2006 18:34:27 -0400
On Apr 10, 2006, at 11:44 AM, Cem Karan wrote:
Bingo. Turns out that Python (at least, the version XCode is
using, which may not be what it shipped with b/c I installed a
newer version) has a bug in it. The last statement in my script
"print outputString," should print the line without adding a
newline to the end, but it turns out that it IS adding in the
newline regardless. The fix (for any python people out there) is
to do "sys.stdout.write(outputString)".
This isn't a bug. If sys.stdout.softspace is set to True (which it
is by default), Python will automatically write a newline on exit.
If you want to change that:
import sys
...
sys.stdout.softspace = False
...
-Prachi
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden