mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Doc: fix import of asdl.py when called from outside Doc/. (GH-21529)
This commit is contained in:
parent
7cf1cb36ec
commit
7f03445d01
1 changed files with 4 additions and 1 deletions
|
@ -1,6 +1,9 @@
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
sys.path.append(os.path.abspath("../Parser/"))
|
from pathlib import Path
|
||||||
|
|
||||||
|
CPYTHON_ROOT = Path(__file__).resolve().parent.parent.parent.parent
|
||||||
|
sys.path.append(str(CPYTHON_ROOT / "Parser"))
|
||||||
|
|
||||||
from pygments.lexer import RegexLexer, bygroups, include, words
|
from pygments.lexer import RegexLexer, bygroups, include, words
|
||||||
from pygments.token import (Comment, Generic, Keyword, Name, Operator,
|
from pygments.token import (Comment, Generic, Keyword, Name, Operator,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue