Skip to content

Commit 2b9568a

Browse files
author
Rajesh Meena
committed
Changes comparision type to PurePath to handle both Windows and Posix path types
1 parent 4010dd5 commit 2b9568a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ansys/dpf/core/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,11 +429,11 @@ def streams_provider(self):
429429
return self._stream_provider
430430

431431
def _set_data_sources(self, var_inp):
432-
from pathlib import Path
432+
from pathlib import PurePath
433433

434434
if isinstance(var_inp, dpf.core.DataSources):
435435
self._data_sources = var_inp
436-
elif isinstance(var_inp, (str, Path)):
436+
elif isinstance(var_inp, (str, PurePath)):
437437
self._data_sources = DataSources(var_inp, server=self._server)
438438
else:
439439
self._data_sources = DataSources(server=self._server)

0 commit comments

Comments
 (0)