Skip to content

Commit 297b62e

Browse files
committed
log2zulip: Use simpler code for accessing production venv.
The only problem with this resulting code is that setup_path_on_import only works if the Python versions are the same, so you need to run this with Python 3 in that case. We try to resolve that for use on Zulip servers with zulip/zulip:47c5aae5b242fb6d2f5e860602e0fc0af68419bb; since that's the main case where the code path runs, that should be good enough.
1 parent dc2132e commit 297b62e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zulip/integrations/log2zulip/log2zulip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import traceback
1414

1515
try:
1616
# Use the Zulip virtualenv if available
17-
sys.path.append(os.path.join(os.path.dirname(__file__), "../../.."))
17+
sys.path.append("/home/zulip/deployments/current")
1818
import scripts.lib.setup_path_on_import
1919
except ImportError:
2020
pass

0 commit comments

Comments
 (0)