summaryrefslogtreecommitdiffstats
path: root/pywrap/pcilib.py
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2016-03-04 19:30:43 +0100
committerSuren A. Chilingaryan <csa@suren.me>2016-03-04 19:30:43 +0100
commitc8b64cf87a3ff10abac92835c07b1dd76319f185 (patch)
tree0a86fd68612ab35cccec3567015c60633cb526f8 /pywrap/pcilib.py
parentc38706b3c8bbaec638cc49745fd71dfb14df37e5 (diff)
parent327b71b05b60a03e56fad618b51fbccd06c3776d (diff)
downloadpcitool-c8b64cf87a3ff10abac92835c07b1dd76319f185.tar.gz
pcitool-c8b64cf87a3ff10abac92835c07b1dd76319f185.tar.bz2
pcitool-c8b64cf87a3ff10abac92835c07b1dd76319f185.tar.xz
pcitool-c8b64cf87a3ff10abac92835c07b1dd76319f185.zip
Integrate last part of Python code from Vasiliy Chernov
Diffstat (limited to 'pywrap/pcilib.py')
-rw-r--r--pywrap/pcilib.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pywrap/pcilib.py b/pywrap/pcilib.py
index f4976bf..a72c79b 100644
--- a/pywrap/pcilib.py
+++ b/pywrap/pcilib.py
@@ -28,6 +28,8 @@ class pcilib(pcipywrap):
curr_script['name'] = script
if 'description' in dir(s.__scipts[script]):
curr_script['description'] = s.__scipts[script].description
+ if 'run' in dir(s.__scipts[script]):
+ curr_script['valid'] = True
scripts.append(curr_script)
return scripts