log2zulip: Adjust for zulip setup_path_on_import → setup_path change.
687553a661
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
parent
1a417b1610
commit
953709fdd5
|
@ -11,11 +11,16 @@ import subprocess
|
||||||
import tempfile
|
import tempfile
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
|
# Use the Zulip virtualenv if available
|
||||||
|
sys.path.append("/home/zulip/deployments/current")
|
||||||
try:
|
try:
|
||||||
# Use the Zulip virtualenv if available
|
from scripts.lib.setup_path import setup_path
|
||||||
sys.path.append("/home/zulip/deployments/current")
|
setup_path()
|
||||||
import scripts.lib.setup_path_on_import
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
try:
|
||||||
|
import scripts.lib.setup_path_on_import
|
||||||
|
scripts.lib.setup_path_on_import # Suppress unused import warning
|
||||||
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
|
Loading…
Reference in a new issue