Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: fd757083df79c21eee862e8d89aeefefe45f64a0 authored by Ɓukasz Langa on 19 November 2019, 11:17:21 UTC
Python 3.9.0a1
Tip revision: fd75708
__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