summaryrefslogtreecommitdiff
path: root/examples/load_directory.py
diff options
context:
space:
mode:
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))
+