Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 439c93d51f45c50541fc755b597725168ecd939a authored by Ɓukasz Langa on 11 August 2020, 17:14:36 UTC
Python 3.9.0rc1
Tip revision: 439c93d
__init__.py
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
back to top