diff options
author | Jean Abou-Samra <jean@abou-samra.fr> | 2022-09-01 23:00:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-01 23:00:25 +0200 |
commit | 728e63cfa969eaeb187b71807a5b20f12999e9fb (patch) | |
tree | 1a2337d2b3001db32b7d808656e84d31e590358c /scripts | |
parent | cbc7143f583caf05729b19c7dce4039d466a48cd (diff) | |
download | pygments-git-728e63cfa969eaeb187b71807a5b20f12999e9fb.tar.gz |
gen_mapfiles.py: convert Path to str before adding to sys.path (#2223)
pathlib.Path entries in sys.path are actually ignored. See
https://github.com/python/cpython/issues/96482
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/gen_mapfiles.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gen_mapfiles.py b/scripts/gen_mapfiles.py index 5fd084ad..a5aed0ca 100644 --- a/scripts/gen_mapfiles.py +++ b/scripts/gen_mapfiles.py @@ -15,7 +15,7 @@ import sys 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 |