Skip to content

Commit ef00dd6

Browse files
committed
⚡️ drop use of win32api for Windows long path name
1 parent c633032 commit ef00dd6

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

modelitool/simulate.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import os
22
import tempfile
33
from pathlib import Path
4-
import win32api
54

65
import pandas as pd
76
from OMPython import ModelicaSystem
@@ -191,9 +190,7 @@ def _set_x(self, df: pd.DataFrame):
191190
if not self._x.equals(df):
192191
new_bounds_path = self._simulation_path / "boundaries.txt"
193192
df_to_combitimetable(df, new_bounds_path)
194-
full_path = win32api.GetLongPathName(
195-
(self._simulation_path / "boundaries.txt").as_posix()
196-
)
193+
full_path = (self._simulation_path / "boundaries.txt").resolve().as_posix()
197194
self._set_param_dict({f"{self.x_combitimetable_name}.fileName": full_path})
198195
self._x = df
199196

0 commit comments

Comments
 (0)