upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/scripts/vs_input_survey.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vs_input_survey.py')
-rw-r--r--scripts/vs_input_survey.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/vs_input_survey.py b/scripts/vs_input_survey.py
index e1da657ff..89e648364 100644
--- a/scripts/vs_input_survey.py
+++ b/scripts/vs_input_survey.py
@@ -125,10 +125,14 @@ def main():
125 legacy = not (m.get("exp prim") or m.get("s_sendmsg") or m.get("v_mbcnt")) 125 legacy = not (m.get("exp prim") or m.get("s_sendmsg") or m.get("v_mbcnt"))
126 print("layout:", "legacy (non-NGG) VS" if legacy else "NGG markers present: check the VS input layout") 126 print("layout:", "legacy (non-NGG) VS" if legacy else "NGG markers present: check the VS input layout")
127 if a.json: 127 if a.json:
128 with open(a.json, "w", encoding="utf-8") as f: 128 with open(a.json, "w", encoding="utf-8", newline="\n") as f:
129 json.dump(r, f, indent=1) 129 json.dump(r, f, indent=1)
130 return 0 130 return 0
131 131
132 132
133if __name__ == "__main__": 133if __name__ == "__main__":
134 try: # a redirected stdout is strict ANSI code page under -I; write '?' for what it cannot encode
135 sys.stdout.reconfigure(errors="replace")
136 except (AttributeError, ValueError, OSError):
137 pass
134 sys.exit(main()) 138 sys.exit(main())