Skip to content

Commit b438c81

Browse files
fix: adapt Native folder path for Linux and Windows (#1932)
Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
1 parent 7748a8e commit b438c81

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

doc/changelog.d/1932.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
adapt Native folder path for Linux and Windows

src/ansys/geometry/core/connection/product_instance.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,13 @@ def prepare_and_start_backend(
386386
cad_integration_folder = root_service_folder / "CADIntegration"
387387
schema_folder = root_service_folder / "Schema"
388388

389+
# Adapt the native folder to the OS
390+
# The native folder is different for Windows and Linux.
391+
if os.name == "nt":
392+
native_folder = native_folder / "Windows"
393+
else:
394+
native_folder = native_folder / "Linux"
395+
389396
# Set the environment variables for the Ansys Geometry Core Service launch
390397
# ANS_DSCO_REMOTE_IP should be variable "host" directly, but not working...
391398
env_copy["ANS_DSCO_REMOTE_IP"] = "127.0.0.1" if host == "localhost" else host

0 commit comments

Comments
 (0)