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:
parent
503746131c
commit
1c811dbf3e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user