From 0b380f7bf0f4d2c9c0460189897ada8eb8c01570 Mon Sep 17 00:00:00 2001 From: Brad Bishop Date: Fri, 10 Jun 2016 00:29:50 -0400 Subject: Install python workbook to well-known location This removes the need to pass the system configuration to all the scripts. Signed-off-by: Brad Bishop --- pyinventorymgr/inventory_items.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'pyinventorymgr') diff --git a/pyinventorymgr/inventory_items.py b/pyinventorymgr/inventory_items.py index 5e53293..772fb3e 100644 --- a/pyinventorymgr/inventory_items.py +++ b/pyinventorymgr/inventory_items.py @@ -10,12 +10,7 @@ import cPickle import json import obmc.dbuslib.propertycacher as PropertyCacher from obmc.dbuslib.bindings import get_dbus, DbusProperties, DbusObjectManager - -if (len(sys.argv) < 2): - print "Usage: inventory_items.py [system name]" - exit(1) -System = __import__(sys.argv[1]) - +import obmc_system_config as System INTF_NAME = 'org.openbmc.InventoryItem' DBUS_NAME = 'org.openbmc.Inventory' -- cgit v1.2.1