Xymon Mailing List Archive search

Python and hobbit variables

2 messages in this thread

list Wayne Gemmell · Wed, 28 May 2008 14:50:56 +0200 ·
Hi all

I'm re-writing my custom scripts in python. Is there any way to access the 
$BBDISP, $MACHINE , $BBHOME , etc variables from Python?

-- 
Regards
Wayne
list Larry Barber · Wed, 28 May 2008 09:50:55 -0500 ·
If you run your scripts using bbcmd these variable will be in the
environment and can be accessed using os.getenv().

Thanks,
Larry

On Wed, May 28, 2008 at 7:50 AM, Wayne Gemmell <user-7a761fbb908f@xymon.invalid>
quoted from Wayne Gemmell
wrote:
Hi all

I'm re-writing my custom scripts in python. Is there any way to access the
$BBDISP, $MACHINE , $BBHOME , etc variables from Python?

--
Regards
Wayne