2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-29 04:50:21 +00:00

Fix python path automatically in confluent_selfcheck

This commit is contained in:
Jarrod Johnson 2022-09-02 10:11:12 -04:00
parent 503746131c
commit 1c811dbf3e

View File

@ -5,6 +5,11 @@ import socket
import glob
import ssl
import sys
path = os.path.dirname(os.path.realpath(__file__))
path = os.path.realpath(os.path.join(path, '..', 'lib', 'python'))
if path.startswith('/opt'):
# if installed into system path, do not muck with things
sys.path.append(path)
import confluent.sshutil as sshutil
import confluent.certutil as certutil
import confluent.config.configmanager as configmanager