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 efdc8f0 commit ff0d47f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ jobs:
components: rustfmt
toolchain: 1.81.0

- name: Setup env variables
shell: bash
run: |
UV_PYTHON_PATH=$(uv python dir)
export INSTALLED_PYTHON="$(find $UV_PYTHON_PATH -type d -maxdepth 1 -name '*${{ matrix.python }}*')"
echo "$INSTALLED_PYTHON" >> $GITHUB_PATH
echo "PYO3_PYTHON=$INSTALLED_PYTHON\python.exe" >> $GITHUB_ENV
# - name: Setup env variables
# shell: bash
# run: |
# UV_PYTHON_PATH=$(uv python dir)
# export INSTALLED_PYTHON="$(find $UV_PYTHON_PATH -type d -maxdepth 1 -name '*${{ matrix.python }}*')"
# echo "$INSTALLED_PYTHON" >> $GITHUB_PATH
# echo "PYO3_PYTHON=$INSTALLED_PYTHON\python.exe" >> $GITHUB_ENV

- name: test
run: |
Expand Down
17 changes: 17 additions & 0 deletions src/rfc3161_client/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
"""rfc3161-client"""
import os
import platform
import sys
from pathlib import Path

def add_missing_dlls():
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)

python_dir = Path(sys.executable).parent
os.add_dll_directory(python_dir.as_posix())

add_missing_dlls()

from .base import TimestampRequestBuilder, decode_timestamp_response
from .errors import VerificationError
Expand Down

0 comments on commit ff0d47f

Please sign in to comment.