git://git.onelab.eu
/
pypcilib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
92477fe
)
lspci on older bootCDs don't support the -D flag. Also none of our machines are...
author
Faiyaz Ahmed
<faiyaza@cs.princeton.edu>
Mon, 17 Mar 2008 17:08:13 +0000
(17:08 +0000)
committer
Faiyaz Ahmed
<faiyaza@cs.princeton.edu>
Mon, 17 Mar 2008 17:08:13 +0000
(17:08 +0000)
pypci.py
patch
|
blob
|
history
diff --git
a/pypci.py
b/pypci.py
index
dcbe7bd
..
c783b40
100644
(file)
--- a/
pypci.py
+++ b/
pypci.py
@@
-4,7
+4,7
@@
def get_devices():
""" This is a replacement to the pypciscan library."""
ret = {}
""" This is a replacement to the pypciscan library."""
ret = {}
- pci_cmd = os.popen("""/sbin/lspci -
D
nvm | sed -e 's/\t/ /g' -e 's/^/"/' -e 's/$/"/' -e 's/$/,/' -e 's/^"",$/],[/'""", 'r')
+ pci_cmd = os.popen("""/sbin/lspci -nvm | sed -e 's/\t/ /g' -e 's/^/"/' -e 's/$/"/' -e 's/$/,/' -e 's/^"",$/],[/'""", 'r')
pci_str = "[" + pci_cmd.read() + "]"
pci_list = eval(pci_str)
pci_str = "[" + pci_cmd.read() + "]"
pci_list = eval(pci_str)