Skip to content

Commit

Permalink
fix: Move the named_pipe_helper.py under the folder `adaptor_runtim…
Browse files Browse the repository at this point in the history
…e_client`

Signed-off-by: Hongli Chen <[email protected]>
  • Loading branch information
Honglichenn committed Mar 19, 2024
1 parent 3e0f8e2 commit 60349e2
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/openjd/adaptor_runtime/_background/backend_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
if OSName.is_posix():
from .http_server import BackgroundHTTPServer
if OSName.is_windows():
from openjd.adaptor_runtime_client.named_pipe.named_pipe_helper import NamedPipeHelper
from ...adaptor_runtime_client.named_pipe.named_pipe_helper import NamedPipeHelper
from .backend_named_pipe_server import WinBackgroundNamedPipeServer
from .log_buffers import LogBuffer
from .model import ConnectionSettings
Expand Down
2 changes: 1 addition & 1 deletion src/openjd/adaptor_runtime/_background/frontend_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
)

if OSName.is_windows():
from openjd.adaptor_runtime_client.named_pipe.named_pipe_helper import NamedPipeHelper
from ...adaptor_runtime_client.named_pipe.named_pipe_helper import NamedPipeHelper
import pywintypes

_logger = logging.getLogger(__name__)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
if TYPE_CHECKING: # pragma: no cover because pytest will think we should test for this.
from openjd.adaptor_runtime._named_pipe import NamedPipeServer

from openjd.adaptor_runtime_client.named_pipe.named_pipe_helper import (
from ...adaptor_runtime_client.named_pipe.named_pipe_helper import (
NamedPipeHelper,
PipeDisconnectedException,
)
Expand Down
8 changes: 4 additions & 4 deletions src/openjd/adaptor_runtime/_named_pipe/named_pipe_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@

from typing import List

from openjd.adaptor_runtime_client.named_pipe.named_pipe_config import (
from ...adaptor_runtime_client.named_pipe.named_pipe_config import (
DEFAULT_NAMED_PIPE_TIMEOUT_MILLISECONDS,
)
from typing import TYPE_CHECKING

from openjd.adaptor_runtime_client.named_pipe.named_pipe_helper import (
from ...adaptor_runtime_client.named_pipe.named_pipe_helper import (
NamedPipeHelper,
NamedPipeTimeoutError,
)

if TYPE_CHECKING:
from openjd.adaptor_runtime._named_pipe import ResourceRequestHandler
from openjd.adaptor_runtime._osname import OSName
from .._named_pipe import ResourceRequestHandler
from .._osname import OSName

import win32pipe
import win32file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from ._named_pipe_request_handler import WinAdaptorServerResourceRequestHandler
from .._named_pipe import ResourceRequestHandler
from openjd.adaptor_runtime_client.named_pipe.named_pipe_helper import NamedPipeHelper
from ...adaptor_runtime_client.named_pipe.named_pipe_helper import NamedPipeHelper
from .._named_pipe.named_pipe_server import NamedPipeServer


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import os


from openjd.adaptor_runtime_client.named_pipe.named_pipe_config import (
from .named_pipe_config import (
NAMED_PIPE_BUFFER_SIZE,
DEFAULT_MAX_NAMED_PIPE_INSTANCES,
)
Expand Down
2 changes: 1 addition & 1 deletion src/openjd/adaptor_runtime_client/win_client_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from .base_client_interface import BaseClientInterface

from openjd.adaptor_runtime_client.named_pipe.named_pipe_helper import NamedPipeHelper
from .named_pipe.named_pipe_helper import NamedPipeHelper

_DEFAULT_TIMEOUT_IN_SECONDS = 15

Expand Down

0 comments on commit 60349e2

Please sign in to comment.