Skip to content

Commit e5b8f4e

Browse files
Update src/ansys/tools/common/cyberchannel.py
Co-authored-by: Copilot <[email protected]>
1 parent 9cc65fa commit e5b8f4e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)