Skip to content

Commit 65ae825

Browse files
committed
[__init__/OMCSession] prepare compatibility layer
1 parent 123ddd8 commit 65ae825

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

OMPython/OMCSession.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2155,3 +2155,11 @@ def omcpath_tempdir(self, tempdir_base: Optional[OMPathABC] = None) -> OMPathABC
21552155

21562156
def sendExpression(self, expr: str, parsed: bool = True) -> Any:
21572157
raise OMCSessionException(f"{self.__class__.__name__} does not uses an OMC server!")
2158+
2159+
2160+
DummyPopen = DockerPopen
2161+
OMCProcessLocal = OMCSessionLocal
2162+
OMCProcessPort = OMCSessionPort
2163+
OMCProcessDocker = OMCSessionDocker
2164+
OMCProcessDockerContainer = OMCSessionDockerContainer
2165+
OMCProcessWSL = OMCSessionWSL

OMPython/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@
4646

4747
OMCSessionWSL,
4848
OMCSessionZMQ,
49+
50+
OMCProcessLocal,
51+
OMCProcessPort,
52+
OMCProcessDocker,
53+
OMCProcessDockerContainer,
4954
)
5055

5156
# global names imported if import 'from OMPython import *' is used
@@ -88,4 +93,9 @@
8893

8994
'OMCSessionWSL',
9095
'OMCSessionZMQ',
96+
97+
'OMCProcessLocal',
98+
'OMCProcessPort',
99+
'OMCProcessDocker',
100+
'OMCProcessDockerContainer',
91101
]

0 commit comments

Comments
 (0)