diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-03-20 15:30:05 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-03-20 15:30:05 +0100 |
commit | 8e642991d557bd902b749ddd84e41d65c48f79cf (patch) | |
tree | 29b80dd0b6237b485a95a9404bb5b5e9e3380e4e /src/ee/tools | |
parent | 237a6faa8a23826e68bbc00bc107b2d6f97235d0 (diff) | |
download | ee-python-8e642991d557bd902b749ddd84e41d65c48f79cf.tar.gz ee-python-8e642991d557bd902b749ddd84e41d65c48f79cf.tar.bz2 ee-python-8e642991d557bd902b749ddd84e41d65c48f79cf.tar.xz ee-python-8e642991d557bd902b749ddd84e41d65c48f79cf.zip |
o Adding OPL downloader from Seeed studio.
o Adding <description> to <part>
Diffstat (limited to 'src/ee/tools')
-rw-r--r-- | src/ee/tools/seeed_download_opl.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/ee/tools/seeed_download_opl.py b/src/ee/tools/seeed_download_opl.py new file mode 100644 index 0000000..e53361f --- /dev/null +++ b/src/ee/tools/seeed_download_opl.py @@ -0,0 +1,16 @@ +import argparse +from pathlib import Path + +from ee.supplier import seeed + +parser = argparse.ArgumentParser() + +parser.add_argument("--out-dir", + required=True, + metavar="DIR FOR PART DBS") + +args = parser.parse_args() + +cache_dir = ".ee/cache/seeed" + +seeed.download_opls(Path(args.out_dir), Path(cache_dir)) |