We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4010dd5 commit 2b9568aCopy full SHA for 2b9568a
src/ansys/dpf/core/model.py
@@ -429,11 +429,11 @@ def streams_provider(self):
429
return self._stream_provider
430
431
def _set_data_sources(self, var_inp):
432
- from pathlib import Path
+ from pathlib import PurePath
433
434
if isinstance(var_inp, dpf.core.DataSources):
435
self._data_sources = var_inp
436
- elif isinstance(var_inp, (str, Path)):
+ elif isinstance(var_inp, (str, PurePath)):
437
self._data_sources = DataSources(var_inp, server=self._server)
438
else:
439
self._data_sources = DataSources(server=self._server)
0 commit comments