summaryrefslogtreecommitdiffstats
path: root/lavalab-gen.py
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2018-02-13 15:40:12 +0100
committerCorentin LABBE <clabbe@baylibre.com>2018-02-15 10:30:03 +0100
commit9e2145c128e49132586c46001aa3a7b2b8fd4750 (patch)
tree1aec98aed203d199083b84e706129e898facde22 /lavalab-gen.py
parent589fab595ad96d75d8a2bfba051b608c5f0b438b (diff)
Clean argument parsing
lavalab-gen.py does not handle arguments, lets remove all arg parsing stuff.
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()