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:
parent
d7190c893f
commit
b77d8b1f21
@ -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'):
|
||||
|
Loading…
Reference in New Issue
Block a user