2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 01:22:00 +00:00

Make yaml import conditional

Only Ubuntu requires it, but tends to have it.

Other distributions do not tend to have it.
This commit is contained in:
Jarrod Johnson 2023-09-12 10:45:15 -04:00
parent d7190c893f
commit b77d8b1f21

View File

@ -23,7 +23,10 @@ import subprocess
import sys
import tempfile
import time
import yaml
try:
import yaml
except ImportError:
pass
path = os.path.dirname(os.path.realpath(__file__))
path = os.path.realpath(os.path.join(path, '..', 'lib', 'python'))
if path.startswith('/opt'):