summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2025-03-05 02:14:59 -0600
committerGitHub <noreply@github.com>2025-03-05 02:14:59 -0600
commit67a4363ed91e3f68e12428526e311b71f532285a (patch)
treeb5b50f09e839c4fa6634e719c94d1f3a8ebda72c /python
parent99d929d18d7380cdf906ac2126ad8587059450fe (diff)
parent731195c7adb21208767199f5487dfdf29ce09380 (diff)
downloadvyos-1x-67a4363ed91e3f68e12428526e311b71f532285a.tar.gz
vyos-1x-67a4363ed91e3f68e12428526e311b71f532285a.zip
Merge pull request #4378 from jestabro/libvyosconfig-build
T5400: Move libvyosconfig build out of the Docker image
Diffstat (limited to 'python')
-rw-r--r--python/vyos/configtree.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/vyos/configtree.py b/python/vyos/configtree.py
index 8d27a7e46..4ad0620a5 100644
--- a/python/vyos/configtree.py
+++ b/python/vyos/configtree.py
@@ -19,7 +19,9 @@ import logging
from ctypes import cdll, c_char_p, c_void_p, c_int, c_bool
-LIBPATH = '/usr/lib/libvyosconfig.so.0'
+BUILD_PATH = '/tmp/libvyosconfig/_build/libvyosconfig.so'
+INSTALL_PATH = '/usr/lib/libvyosconfig.so.0'
+LIBPATH = BUILD_PATH if os.path.isfile(BUILD_PATH) else INSTALL_PATH
def replace_backslash(s, search, replace):