Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/topic/timw/revert-zeekclient-imp…
Browse files Browse the repository at this point in the history
…ort-path-modifications'

* origin/topic/timw/revert-zeekclient-import-path-modifications:
  Revert modification of sys.path when importing zeekclient
  • Loading branch information
ckreibich committed Dec 13, 2024
2 parents 1f249e9 + 40394d7 commit 7b782d4
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.3.1-49 | 2024-12-12 16:41:07 -0800

* Revert modification of sys.path when importing zeekclient (Tim Wojtulewicz, Corelight)

1.3.1-47 | 2024-12-06 18:26:31 -0700

* Ensure exception types in our tests match websocket-client (Tim Wojtulewicz, Corelight)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.1-47
1.3.1-49
12 changes: 11 additions & 1 deletion zeek-client
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,19 @@ the idioms and primitives also used by the zkg package manager.
# https://pypi.org/project/argcomplete/#global-completion
# PYTHON_ARGCOMPLETE_OK

import os.path
import sys

import zeekclient
# For Zeek-bundled installation, prepend the Python path of the Zeek
# installation to the search path. This ensures we find the matching module
# first (or at all), avoiding potential conflicts with installations elsewhere
# on the system.
ZEEK_PYTHON_DIR = "@PY_MOD_INSTALL_DIR@"
if os.path.isdir(ZEEK_PYTHON_DIR):
sys.path.insert(0, os.path.abspath(ZEEK_PYTHON_DIR))
else:
ZEEK_PYTHON_DIR = None
import zeekclient # pylint: disable=wrong-import-position


def main():
Expand Down
2 changes: 1 addition & 1 deletion zeekclient/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
)
from .logs import LOG

__version__ = "1.3.1-47"
__version__ = "1.3.1-49"
__all__ = [
"brokertypes",
"cli",
Expand Down

0 comments on commit 7b782d4

Please sign in to comment.