Skip to content

Commit

Permalink
gen_mapfiles.py: convert Path to str before adding to sys.path (#2223)
Browse files Browse the repository at this point in the history
pathlib.Path entries in sys.path are actually ignored.  See
python/cpython#96482
  • Loading branch information
jeanas committed Sep 1, 2022
1 parent cbc7143 commit 728e63c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/gen_mapfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

top_src_dir = Path(__file__).parent.parent
pygments_package = top_src_dir / 'pygments'
sys.path.insert(0, pygments_package.parent.resolve())
sys.path.insert(0, str(pygments_package.parent.resolve()))

from pygments.util import docstring_headline

Expand Down

0 comments on commit 728e63c

Please sign in to comment.