summaryrefslogtreecommitdiff
path: root/examples/load_directory.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-02-06 14:20:13 +0100
committerjaseg <git@jaseg.de>2022-02-06 14:20:13 +0100
commit1872df4a339b6c3a9e04dd0b55564902871f412d (patch)
tree46db978b147c4a87a8ab5f24c7b5f1892f14a150 /examples/load_directory.py
parentd5dcb60b5f7480b83b0d3099917fcae00d7f2710 (diff)
downloadgerbonara-1872df4a339b6c3a9e04dd0b55564902871f412d.tar.gz
gerbonara-1872df4a339b6c3a9e04dd0b55564902871f412d.tar.bz2
gerbonara-1872df4a339b6c3a9e04dd0b55564902871f412d.zip
Make split_commands faster
Diffstat (limited to 'examples/load_directory.py')
-rw-r--r--examples/load_directory.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/load_directory.py b/examples/load_directory.py
new file mode 100644
index 0000000..6e1f901
--- /dev/null
+++ b/examples/load_directory.py
@@ -0,0 +1,11 @@
+#!/usr/bin/env python3
+
+if __name__ == '__main__':
+ import argparse
+ parser = argparse.ArgumentParser()
+ parser.add_argument('input', help='Input Gerber directory')
+ args = parser.parse_args()
+
+ import gerbonara
+ print(gerbonara.LayerStack.from_directory(args.input))
+