We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c633032 commit ef00dd6Copy full SHA for ef00dd6
1 file changed
modelitool/simulate.py
@@ -1,7 +1,6 @@
1
import os
2
import tempfile
3
from pathlib import Path
4
-import win32api
5
6
import pandas as pd
7
from OMPython import ModelicaSystem
@@ -191,9 +190,7 @@ def _set_x(self, df: pd.DataFrame):
191
190
if not self._x.equals(df):
192
new_bounds_path = self._simulation_path / "boundaries.txt"
193
df_to_combitimetable(df, new_bounds_path)
194
- full_path = win32api.GetLongPathName(
195
- (self._simulation_path / "boundaries.txt").as_posix()
196
- )
+ full_path = (self._simulation_path / "boundaries.txt").resolve().as_posix()
197
self._set_param_dict({f"{self.x_combitimetable_name}.fileName": full_path})
198
self._x = df
199
0 commit comments