summaryrefslogtreecommitdiffstats
path: root/lavalab-gen.py
diff options
context:
space:
mode:
authorkhilman <khilman@users.noreply.github.com>2018-02-16 10:07:26 -0800
committerGitHub <noreply@github.com>2018-02-16 10:07:26 -0800
commit7aa2058bc5203ebfe719ebaa87582e669d3e27d3 (patch)
tree18e498edd3061a9d0be72680b57eeece33d2db67 /lavalab-gen.py
parentaabc1b6c55a82f3f9270fd1a124a2ffa76e3e69e (diff)
parent21e70029a9a90bfb9183ea3bf60525bf72c62bd1 (diff)
Merge pull request #23 from montjoie/misc
Misc
Diffstat (limited to 'lavalab-gen.py')
-rwxr-xr-xlavalab-gen.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/lavalab-gen.py b/lavalab-gen.py
index f151aa1..396579e 100755
--- a/lavalab-gen.py
+++ b/lavalab-gen.py
@@ -3,7 +3,6 @@
from __future__ import print_function
import os, sys, time
import subprocess
-import argparse
import yaml
import string
import socket
@@ -44,7 +43,7 @@ template_udev_devpath = string.Template("""#
SUBSYSTEM=="tty", ATTRS{idVendor}=="${idvendor}", ATTRS{idProduct}=="${idproduct}", ATTRS{devpath}=="${devpath}", MODE="0664", OWNER="uucp", SYMLINK+="${board}"
""")
-def main(args):
+def main():
fp = open(boards_yaml, "r")
labs = yaml.load(fp)
fp.close()
@@ -193,8 +192,5 @@ def main(args):
if __name__ == "__main__":
shutil.copy("common/build-lava", "lava-slave/scripts/build-lava")
shutil.copy("common/build-lava", "lava-master/scripts/build-lava")
- parser = argparse.ArgumentParser()
- parser.add_argument("--header", help="use this file as header for output file")
- args = parser.parse_args()
- main(args)
+ main()