aboutsummaryrefslogtreecommitdiffstats
path: root/tech-support/labels/planning_output.py
diff options
context:
space:
mode:
Diffstat (limited to 'tech-support/labels/planning_output.py')
-rw-r--r--tech-support/labels/planning_output.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tech-support/labels/planning_output.py b/tech-support/labels/planning_output.py
new file mode 100644
index 0000000..934dc83
--- /dev/null
+++ b/tech-support/labels/planning_output.py
@@ -0,0 +1,14 @@
+from gondul import _match_switches
+from gondul import _sort_switches
+
+def read_planning_switches(path, match=None):
+ lines = None
+ with open(path) as f:
+ lines = f.readlines()
+
+ switches = []
+ for line in lines:
+ switches.append(line.split(" ")[0])
+
+ switches = _match_switches(switches, match=match)
+ return _sort_switches(switches)