mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Doc: fix import of asdl.py when called from outside Doc/. (GH-21529)
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
import os
|
||||
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.token import (Comment, Generic, Keyword, Name, Operator,
|
||||
|
||||
Reference in New Issue
Block a user