Mercurial > lcfOS
diff 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 diff
--- a/python/ppci/__init__.py Mon Feb 17 20:41:30 2014 +0100 +++ b/python/ppci/__init__.py Wed Feb 19 22:32:15 2014 +0100 @@ -1,6 +1,7 @@ # File to make this directory a package. import sys +import os version = '0.0.1' @@ -14,3 +15,5 @@ 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)