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 f4f38f9 commit a05896aCopy full SHA for a05896a
src/ansys/dpf/core/examples/examples.py
@@ -29,6 +29,7 @@
29
"""
30
31
import os
32
+from pathlib import Path
33
34
from ansys.dpf.core import server as server_module
35
from ansys.dpf.core.core import upload_file_in_tmp_folder
@@ -55,7 +56,8 @@ def get_example_required_minimum_dpf_version(file: os.PathLike) -> str:
55
56
in_header = False
57
previous_line_is_note = False
58
minimum_version_str = "0.0"
- with open(file, "r") as f:
59
+ file = Path(file)
60
+ with file.open("r") as f:
61
for line in f:
62
if line[:3] == header_flag:
63
if not in_header:
0 commit comments