1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-22 10:23:46 +01:00
This commit is contained in:
Páll Guðjón Sigurðsson 2010-09-02 23:48:32 +00:00
parent 02d8e4f5dd
commit e147b99343

View File

@ -119,13 +119,12 @@ def set_path(path):
current_path = getenv('PATH') current_path = getenv('PATH')
if current_path.find('C:\\') > -1: # We are on this platform if current_path.find('C:\\') > -1: # We are on this platform
path = ";C:\Program Files\Hewlett-Packard\Sanworks\Element Manager for StorageWorks HSV" path = ";C:\Program Files\Hewlett-Packard\Sanworks\Element Manager for StorageWorks HSV"
path = path + ";C:\Program Files (x86)\Compaq\Hpacucli\Bin\hpacucli.exe" path = path + ";C:\Program Files (x86)\Compaq\Hpacucli\Bin"
path = path + ";C:\Program Files\Compaq\Hpacucli\Bin\hpacucli.exe" path = path + ";C:\Program Files\Compaq\Hpacucli\Bin"
print "Tons of path added"
else: else:
path = ":/usr/local/bin" path = ":/usr/local/bin"
current_path = "%s%s" % (current_path,path) current_path = "%s%s" % (current_path,path)
putenv('PATH', current_path) putenv('PATH', current_path)