This is an automated email from the ASF dual-hosted git repository.

gstein pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/steve.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 938003f  turn the crank. set up to re-use existing code.
938003f is described below

commit 938003f1e62c3cc535ec1dd8d7cb26e359eaae00
Author: Greg Stein <[email protected]>
AuthorDate: Tue May 31 02:22:54 2022 -0500

    turn the crank. set up to re-use existing code.
---
 v3/steve/vtypes/stv.py | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/v3/steve/vtypes/stv.py b/v3/steve/vtypes/stv.py
index cf459bc..0f8889b 100644
--- a/v3/steve/vtypes/stv.py
+++ b/v3/steve/vtypes/stv.py
@@ -18,3 +18,22 @@
 #
 # ### TBD: DOCCO
 #
+
+import os.path
+import importlib
+
+# Where can we find the stv_tool module?
+STV_RELPATH = '../../../monitoring/stv_tool.py'
+
+
+def load_stv():
+    pathname = os.path.join(os.path.dirname(__file__), STV_RELPATH)
+    spec = importlib.util.spec_from_file_location('stv_tool', pathname)
+    stv_tool = importlib.util.module_from_spec(spec)
+    spec.loader.exec_module(stv_tool)
+
+    return stv_tool
+
+
+def tally(votestrings, kv):
+    pass

Reply via email to