Skip to content

Commit a05896a

Browse files
committed
doc: modified another src file
1 parent f4f38f9 commit a05896a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ansys/dpf/core/examples/examples.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"""
3030

3131
import os
32+
from pathlib import Path
3233

3334
from ansys.dpf.core import server as server_module
3435
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:
5556
in_header = False
5657
previous_line_is_note = False
5758
minimum_version_str = "0.0"
58-
with open(file, "r") as f:
59+
file = Path(file)
60+
with file.open("r") as f:
5961
for line in f:
6062
if line[:3] == header_flag:
6163
if not in_header:

0 commit comments

Comments
 (0)