diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2016-06-10 00:29:50 -0400 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2016-06-10 18:07:15 -0400 |
commit | 0b380f7bf0f4d2c9c0460189897ada8eb8c01570 (patch) | |
tree | 26c6a6c3cd270bf850fe927033fffdde55112dbc /pyinventorymgr | |
parent | 40a360c2a4feef97a8f7041e655b2a42e51e0224 (diff) | |
download | talos-skeleton-0b380f7bf0f4d2c9c0460189897ada8eb8c01570.tar.gz talos-skeleton-0b380f7bf0f4d2c9c0460189897ada8eb8c01570.zip |
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 <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'pyinventorymgr')
-rw-r--r-- | pyinventorymgr/inventory_items.py | 7 |
1 files changed, 1 insertions, 6 deletions
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' |