Skip to content

Commit cc27aaf

Browse files
committed
fix: .ci files should now pass all py3.9 checks
1 parent 8bf8781 commit cc27aaf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.ci/run_examples.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22
import glob
3-
import pathlib
3+
from pathlib import Path
44
import subprocess
55
import sys
66

@@ -11,7 +11,7 @@
1111
os.environ["PYVISTA_OFF_SCREEN"] = "true"
1212
os.environ["MPLBACKEND"] = "Agg"
1313

14-
actual_path = pathlib.Path(__file__).parent.absolute()
14+
actual_path = Path(__file__).parent.absolute()
1515
examples_path = actual_path.parent / "examples"
1616
print(examples_path)
1717

@@ -21,9 +21,9 @@
2121
server.shutdown()
2222
print(f"Server version: {server_version}")
2323

24-
for root, subdirectories, files in examples_path.walk():
24+
for root, subdirectories, files in os.walk(examples_path):
2525
for subdirectory in subdirectories:
26-
subdir = root / subdirectory
26+
subdir = Path(root) / subdirectory
2727
for file in glob.iglob(str(subdir / "*.py")):
2828
if sys.platform == "linux" and "08-python-operators" in file:
2929
continue

0 commit comments

Comments
 (0)