We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f74dc5c commit 390a14dCopy full SHA for 390a14d
1 file changed
OMPython/OMCSession.py
@@ -434,7 +434,7 @@ def cwd(self) -> OMPathBase:
434
Returns the current working directory as an OMPathBase object.
435
"""
436
cwd_str = self._session.sendExpression('cd()')
437
- return self.__class__(cwd_str, session=self._session)
+ return type(self)(cwd_str, session=self._session)
438
439
def unlink(self, missing_ok: bool = False) -> None:
440
0 commit comments