Skip to content

Commit

Permalink
Fix for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianboguszewski committed Aug 31, 2022
1 parent 58f685e commit 73231fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bindings/python/src/openvino/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
from functools import wraps
from typing import Callable, Any

from openvino.pyopenvino.util import deprecation_warning


def add_openvino_libs_to_path() -> None:
"""Adds OpenVINO libraries to the PATH environment variable on Windows."""
Expand Down Expand Up @@ -43,6 +41,8 @@ def deprecated(version: str = "", message: str = "") -> Callable[..., Any]:
def decorator(wrapped: Callable[..., Any]) -> Callable[..., Any]:
@wraps(wrapped)
def wrapper(*args: Any, **kwargs: Any) -> Callable[..., Any]:
# it must be imported here; otherwise, there are errors with no loaded DLL for Windows
from openvino.pyopenvino.util import deprecation_warning
deprecation_warning(wrapped.__name__, version, message)
return wrapped(*args, **kwargs)
return wrapper
Expand Down

0 comments on commit 73231fc

Please sign in to comment.