view python/ppci/__init__.py @ 336:d1ecc493384e

Added spiffy armtoken class for bit fiddeling. Added cool test that checks for build repeatability
author Windel Bouwman
date Wed, 19 Feb 2014 22:32:15 +0100
parents a78b41ff6ad2
children 173e20a47fda
line wrap: on
line source

# File to make this directory a package.

import sys
import os

version = '0.0.1'

# Assert python version:
if sys.version_info.major != 3:
   print("Needs to be run in python version 3.x")
   sys.exit(1)

from .common import SourceLocation, SourceRange, Token
from .common import CompilerError, DiagnosticsManager

logformat='%(asctime)s|%(levelname)s|%(name)s|%(message)s'

def same_dir(full_path, filename):
    return os.path.join(os.path.dirname(os.path.abspath(full_path)), filename)