Skip to content

Commit c51550e

Browse files
committed
Merge branch 'earnal/uds_fullpath' of https://github.com/ansys/ansys-tools-common into earnal/uds_fullpath
2 parents ea2ec8f + 830e499 commit c51550e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Feat: Add fullpath to set UDS sock filename

src/ansys/tools/common/cyberchannel.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ def create_uds_channel(
227227
raise RuntimeError("Unix Domain Sockets are not supported on this platform or gRPC version.")
228228

229229
if uds_fullpath:
230+
# Ensure the parent directory exists
231+
Path(uds_fullpath).parent.mkdir(parents=True, exist_ok=True)
230232
target = f"unix:{uds_fullpath}"
231233
else:
232234
if not uds_service:

0 commit comments

Comments
 (0)