From: Patrick K. O'B. <po...@or...> - 2001-06-27 18:23:59
|
I got the latest CVS and this feature isn't working quite right for me. I've looked at the IDLE source to see how Guido handled this and I see where the problem lies. As soon as I have a chance I'll go through the boa code and submit a patch to handle PYTHONSTARTUP the same way IDLE does. IDLE also allows for an IDLESTARTUP so I'll look at adding a BOASTARTUP capability while I'm at it. --- Patrick K. O'Brien Orbtech "I am, therefore I think." -----Original Message----- From: boa...@li... [mailto:boa...@li...]On Behalf Of Riaan Booysen Sent: Friday, June 08, 2001 11:51 PM To: po...@or... Cc: Boa Constructor Users Subject: Re: [Boa Constr] PYTHONSTARTUP Hi Patrick, Ok, this is now added to Boa, like IDLE, use the commandline switch -s to run it. Thanks. "Patrick K. O'Brien" wrote: > > Might be better to do something like: > > import os > filename = os.environ.get('PYTHONSTARTUP') > try: > execfile(filename) > except: > print "Unable to load startup script", filename > del os # Unless you want to leave os in the namespace. > > --- > Patrick K. O'Brien > Orbtech > "I am, therefore I think." |