Skip to content

Commit 85e36c7

Browse files
Samuelopez-ansysPositroniumJSpyansys-ci-bot
authored
FIX: enable to import the lib again from MacOS (#6738)
Co-authored-by: PositroniumJS <[email protected]> Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent f2a3d22 commit 85e36c7

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

doc/changelog.d/6738.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Enable to import the lib again from MacOS

src/ansys/aedt/core/generic/settings.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
import logging
4040
import os
4141
from pathlib import Path
42-
import platform
4342
import time
4443
from typing import Any
4544
from typing import List
@@ -52,8 +51,7 @@
5251
from ansys.aedt.core.generic.scheduler import DEFAULT_CUSTOM_SUBMISSION_STRING
5352
from ansys.aedt.core.generic.scheduler import DEFAULT_NUM_CORES
5453

55-
system = platform.system()
56-
is_linux = system == "Linux"
54+
is_linux = os.name == "posix"
5755

5856
# Settings allowed to be updated using a YAML configuration file.
5957
ALLOWED_LOG_SETTINGS = [

src/ansys/aedt/core/internal/grpc_plugin_dll_class.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def __init__(self, objID, listFuncs, AedtAPI=None):
103103
self.__dict__["objectID"] = objID # avoid derive class overwrite __setattr__
104104
self.__dict__["__methodNames__"] = listFuncs
105105
self.dllapi = AedtAPI
106-
self.is_linux = True if os.name == "posix" else False
106+
self.is_linux = os.name == "posix"
107107

108108
# print(self.objectID)
109109

0 commit comments

Comments
 (0)