comparison 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
comparison
equal deleted inserted replaced
335:582a1aaa3983 336:d1ecc493384e
1 # File to make this directory a package. 1 # File to make this directory a package.
2 2
3 import sys 3 import sys
4 import os
4 5
5 version = '0.0.1' 6 version = '0.0.1'
6 7
7 # Assert python version: 8 # Assert python version:
8 if sys.version_info.major != 3: 9 if sys.version_info.major != 3:
12 from .common import SourceLocation, SourceRange, Token 13 from .common import SourceLocation, SourceRange, Token
13 from .common import CompilerError, DiagnosticsManager 14 from .common import CompilerError, DiagnosticsManager
14 15
15 logformat='%(asctime)s|%(levelname)s|%(name)s|%(message)s' 16 logformat='%(asctime)s|%(levelname)s|%(name)s|%(message)s'
16 17
18 def same_dir(full_path, filename):
19 return os.path.join(os.path.dirname(os.path.abspath(full_path)), filename)