summaryrefslogtreecommitdiffstats
path: root/pytools/gpioutil
diff options
context:
space:
mode:
Diffstat (limited to 'pytools/gpioutil')
-rw-r--r--pytools/gpioutil3
1 files changed, 3 insertions, 0 deletions
diff --git a/pytools/gpioutil b/pytools/gpioutil
index b6ec5ea..58e02e6 100644
--- a/pytools/gpioutil
+++ b/pytools/gpioutil
@@ -19,6 +19,9 @@ def printUsage():
if (len(sys.argv) < 2):
printUsage()
+# Pop the command name and point to the args
+sys.argv.pop(0)
+
GPIO_SYSFS = '/sys/class/gpio/'
class Gpio:
OpenPOWER on IntegriCloud