From 9f87a9862a04179262d7c0a90e7094b206dc83ba Mon Sep 17 00:00:00 2001 From: Gabriel Couture Date: Mon, 14 Jul 2025 11:02:00 -0400 Subject: [PATCH] Remove warning when importing pyorthanc --- pyorthanc/_internal_client.py | 4 +++- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyorthanc/_internal_client.py b/pyorthanc/_internal_client.py index f44acb1..05695a7 100644 --- a/pyorthanc/_internal_client.py +++ b/pyorthanc/_internal_client.py @@ -1,6 +1,6 @@ import json -from . import Orthanc, orthanc_sdk +from . import Orthanc from .errors import NotInInternalEnvironmentError @@ -26,6 +26,8 @@ def get_internal_client() -> Orthanc: ... ... orthanc_sdk.RegisterRestCallback('/get-modalities-in-orthanc', get_modalities_in_orthanc) """ + from pyorthanc import orthanc_sdk + config = orthanc_sdk.GetConfiguration() if not config: diff --git a/pyproject.toml b/pyproject.toml index 974f87c..ea76965 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pyorthanc" -version = "1.22.0" +version = "1.22.1" description = "Orthanc REST API python wrapper with additional utilities" authors = [ "Gabriel Couture ",