@@ -261,12 +261,12 @@ def getClassNames(self, className=None, recursive=False, qualified=False, sort=F
261261 class OMPathABC (pathlib .PurePosixPath , metaclass = abc .ABCMeta ):
262262 """
263263 Implementation of a basic (PurePosix)Path object to be used within OMPython. The derived classes can use OMC as
264- backend and - thus - work on different configurations like docker or WSL. The connection to OMC is provided via an
265- instances of classes derived from BaseSession.
264+ backend and - thus - work on different configurations like docker or WSL. The connection to OMC is provided via
265+ an instances of classes derived from BaseSession.
266266
267- PurePosixPath is selected as it covers all but Windows systems (Linux, docker, WSL). However, the code is written
268- such that possible Windows system are taken into account. Nevertheless, the overall functionality is limited
269- compared to standard pathlib.Path objects.
267+ PurePosixPath is selected as it covers all but Windows systems (Linux, docker, WSL). However, the code is
268+ written such that possible Windows system are taken into account. Nevertheless, the overall functionality is
269+ limited compared to standard pathlib.Path objects.
270270 """
271271
272272 def __init__ (self , * path , session : OMSessionABC ) -> None :
@@ -363,7 +363,6 @@ def size(self) -> int:
363363 Get the size of the file in bytes - this is an extra function and the best we can do using OMC.
364364 """
365365
366-
367366 class _OMCPath (OMPathABC ):
368367 """
369368 Implementation of a OMPathABC using OMC as backend. The connection to OMC is provided via an instances of an
@@ -527,13 +526,11 @@ def size(self) -> int:
527526 """
528527 return self .stat ().st_size
529528
530-
531529 class OMPathCompatibilityPosix (pathlib .PosixPath , OMPathCompatibility ):
532530 """
533531 Compatibility class for OMCPath on Posix systems (Python < 3.12)
534532 """
535533
536-
537534 class OMPathCompatibilityWindows (pathlib .WindowsPath , OMPathCompatibility ):
538535 """
539536 Compatibility class for OMCPath on Windows systems (Python < 3.12)
@@ -1841,15 +1838,14 @@ class OMPathRunnerABC(OMPathABC, metaclass=abc.ABCMeta):
18411838 def _path (self ) -> pathlib .Path :
18421839 return pathlib .Path (self .as_posix ())
18431840
1844-
18451841 class _OMPathRunnerLocal (OMPathRunnerABC ):
18461842 """
1847- Implementation of OMPathABC which does not use the session data at all. Thus, this implementation can run locally
1848- without any usage of OMC.
1843+ Implementation of OMPathABC which does not use the session data at all. Thus, this implementation can run
1844+ locally without any usage of OMC.
18491845
1850- This class is based on OMPathABC and, therefore, on pathlib.PurePosixPath. This is working well, but it is not the
1851- correct implementation on Windows systems. To get a valid Windows representation of the path, use the conversion
1852- via pathlib.Path(<OMCPathDummy>.as_posix()).
1846+ This class is based on OMPathABC and, therefore, on pathlib.PurePosixPath. This is working well, but it is not
1847+ the correct implementation on Windows systems. To get a valid Windows representation of the path, use the
1848+ conversion via pathlib.Path(<OMCPathDummy>.as_posix()).
18531849 """
18541850
18551851 def _path (self ) -> pathlib .Path :
@@ -1927,19 +1923,19 @@ def size(self) -> int:
19271923 path = self ._path ()
19281924 return path .stat ().st_size
19291925
1930-
19311926 # TODO get_cmd_prefix()
19321927 # TODO: used by WSL / docker
19331928 # TODO: get cmd_prefix via OMSession.model_execution_prefix()
1929+
19341930 class _OMPathRunnerBash (OMPathRunnerABC ):
19351931 """
1936- Implementation of OMPathABC which does not use the session data at all. Thus, this implementation can run locally
1937- without any usage of OMC. The special case of this class is the usage of POSIX bash to run all the commands. Thus,
1938- it can be used in WSL or docker.
1932+ Implementation of OMPathABC which does not use the session data at all. Thus, this implementation can run
1933+ locally without any usage of OMC. The special case of this class is the usage of POSIX bash to run all the
1934+ commands. Thus, it can be used in WSL or docker.
19391935
1940- This class is based on OMPathABC and, therefore, on pathlib.PurePosixPath. This is working well, but it is not the
1941- correct implementation on Windows systems. To get a valid Windows representation of the path, use the conversion
1942- via pathlib.Path(<OMCPathDummy>.as_posix()).
1936+ This class is based on OMPathABC and, therefore, on pathlib.PurePosixPath. This is working well, but it is not
1937+ the correct implementation on Windows systems. To get a valid Windows representation of the path, use the
1938+ conversion via pathlib.Path(<OMCPathDummy>.as_posix()).
19431939 """
19441940
19451941 def is_file (self ) -> bool :
0 commit comments