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

pull/3729/head
Nirbheek Chauhan il y a 6 ans commité par Nirbheek Chauhan
Parent be7d8b2d2f
révision 1b1c66d7bc
  1. 2
      meson.py

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

Chargement…
Annuler
Enregistrer