mirror of
https://github.com/python/cpython.git
synced 2026-03-12 07:50:55 +00:00
This is partly a cleanup of the code. It also is preparation for getting the variables from the source (cross-platform) rather than from the symbols. The change only touches the tool (and its tests).
29 lines
613 B
Python
29 lines
613 B
Python
import os.path
|
|
import sys
|
|
|
|
|
|
TOOL_ROOT = os.path.abspath(
|
|
os.path.dirname( # c-analyzer/
|
|
os.path.dirname(__file__))) # cpython/
|
|
DATA_DIR = TOOL_ROOT
|
|
REPO_ROOT = (
|
|
os.path.dirname( # ..
|
|
os.path.dirname(TOOL_ROOT))) # Tools/
|
|
|
|
INCLUDE_DIRS = [os.path.join(REPO_ROOT, name) for name in [
|
|
'Include',
|
|
]]
|
|
SOURCE_DIRS = [os.path.join(REPO_ROOT, name) for name in [
|
|
'Python',
|
|
'Parser',
|
|
'Objects',
|
|
'Modules',
|
|
]]
|
|
|
|
#PYTHON = os.path.join(REPO_ROOT, 'python')
|
|
PYTHON = sys.executable
|
|
|
|
|
|
# Clean up the namespace.
|
|
del sys
|
|
del os
|