You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
978 B

From: a.eyre at (Adrian Eyre)
Date: Mon, 19 Apr 1999 08:27:14 GMT
Subject: #!/usr/bin/env python -u
In-Reply-To: <>
References: <>
Message-ID: <000501be8a3e$6e7269f0$>
X-UID: 317
> (I need the -u for unbuffered output) but when creating RPM files the
> final rpms needs /usr/local/bin/python.
How about a hack like this:
import sys
class UnbufferedStdout:
def __init__(self, stdout):
self.stdout = stdout
def write(self, arg):
sys.stdout = UnbufferedStdout(sys.stdout)
Adrian Eyre <mailto:a.eyre at>
Optichrome Computer Solutions Ltd
Maybury Road, Woking, Surrey, GU21 5HX, UK
Tel: +44 1483 740 233 Fax: +44 1483 760 644