Skip to content

Commit

Permalink
Try another option
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis <[email protected]>
  • Loading branch information
DarkaMaul committed Nov 4, 2024
1 parent 8fea7a0 commit f32a78a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
- name: test
run: |
uv venv
. .venv/Scripts/activate && uv pip install -e . && python -c "import rfc3161_client"
. .venv/Scripts/activate && uv pip install -e '.[test]' && pytest --cov=rfc3161_client
# make test INSTALL_EXTRA=test
shell: bash
env:
Expand Down
11 changes: 9 additions & 2 deletions src/rfc3161_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,18 @@
from pathlib import Path

def add_missing_dlls():
print(f'ADD MISSING DIR {platform.system()}')
"""Add required DLL search directories for Windows platform.
This function ensures DLLs can be found by:
1. Adding OpenSSL directory from OPENSSL_DIR environment variable (if set)
2. Adding Python installation directory
These directories are only added on Windows platforms. On other platforms,
the function returns without making any changes.
"""
if platform.system() != "Windows":
return

print(f"Adding directories to DLL directory")
if openssl_dir := os.environ.get("OPENSSL_DIR"):
os.add_dll_directory(openssl_dir)

Expand Down

0 comments on commit f32a78a

Please sign in to comment.