Skip to content

Commit 009b354

Browse files
committed
[ModelicaSystem] use OMCPath for nearly all file system interactions
remove pathlib - use OMCPath and (for type hints) os.PathLike
1 parent b9d5b36 commit 009b354

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

OMPython/ModelicaSystem.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
import numbers
3939
import numpy as np
4040
import os
41-
import pathlib
4241
import textwrap
4342
from typing import Optional, Any
4443
import warnings
@@ -118,7 +117,7 @@ def __init__(
118117
timeout: Optional[float] = None,
119118
) -> None:
120119
self._session = session
121-
self._runpath = pathlib.Path(runpath).resolve().absolute()
120+
self._runpath = runpath
122121
self._model_name = modelname
123122
self._timeout = timeout
124123
self._args: dict[str, str | None] = {}

0 commit comments

Comments
 (0)