From 67bd78f2e626602d8392482250d4328eb3b1b3a6 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 23 Oct 2023 08:21:22 +0200 Subject: All: Make it easier to update the version --- wrappers/python/example/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wrappers') diff --git a/wrappers/python/example/main.py b/wrappers/python/example/main.py index 6df3b40..92472d2 100644 --- a/wrappers/python/example/main.py +++ b/wrappers/python/example/main.py @@ -1,3 +1,4 @@ +from eduvpn_common import __version__ as commonver import eduvpn_common.main as eduvpn from eduvpn_common.state import State, StateType from eduvpn_common.server import Config, Profiles @@ -98,7 +99,7 @@ def do_secure_internet(edu: eduvpn.EduVPN) -> Optional[Config]: # The main entry point if __name__ == "__main__": - _eduvpn = eduvpn.EduVPN("org.eduvpn.app.linux", "1.1.2-cli-py", "configs", "en") + _eduvpn = eduvpn.EduVPN("org.eduvpn.app.linux", f"{commonver}-cli-py", "configs", "en") setup_callbacks(_eduvpn) # Register with the eduVPN-common library -- cgit v1.2.3