Browse Source

meson.py: sys.path requires str, not pathlib.Path

Nirbheek Chauhan 1 year ago
parent
commit
1b1c66d7bc
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      meson.py

+ 1
- 1
meson.py View File

@@ -21,7 +21,7 @@ from pathlib import Path
21 21
 # we always import the correct mesonbuild modules even if PYTHONPATH is mangled
22 22
 meson_exe = Path(sys.argv[0]).resolve()
23 23
 if (meson_exe.parent / 'mesonbuild').is_dir():
24
-    sys.path.insert(0, meson_exe.parent)
24
+    sys.path.insert(0, str(meson_exe.parent))
25 25
 
26 26
 from mesonbuild import mesonmain
27 27
 

Loading…
Cancel
Save