summaryrefslogtreecommitdiff
path: root/wrappers
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-02-06 14:21:55 +0100
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2024-02-19 14:15:07 +0100
commitd3e1494a5bb9a71d30b4f0d0d48683343a26f330 (patch)
tree4b4f2f25687202b88db23593faeecafbbca1066d /wrappers
parente6ac5507627f9332d180b0611cf6e647aca282ec (diff)
Python example: Set common version from variable
Diffstat (limited to 'wrappers')
-rw-r--r--wrappers/python/example/main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wrappers/python/example/main.py b/wrappers/python/example/main.py
index ce5359f..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", "2.0.0-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