From 268169c9d42fa6c05bccacaf39bb2319c8da4a30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1ll=20Gu=C3=B0j=C3=B3n=20Sigur=C3=B0sson?= Date: Thu, 2 Sep 2010 23:58:49 +0000 Subject: [PATCH] --- check_hparray/trunk/check_hpacucli.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/check_hparray/trunk/check_hpacucli.py b/check_hparray/trunk/check_hpacucli.py index 72fc8c6..c853121 100644 --- a/check_hparray/trunk/check_hpacucli.py +++ b/check_hparray/trunk/check_hpacucli.py @@ -52,7 +52,7 @@ summary="" from sys import exit from sys import argv -from os import getenv,putenv +from os import getenv,putenv,environ import subprocess @@ -124,9 +124,7 @@ def set_path(path): else: path = ":/usr/local/bin" current_path = "%s%s" % (current_path,path) - putenv('PATH', current_path) - print "current path: ", current_path - print "put: %s" %(getenv('PATH')) + environ['PATH'] = current_path