diff --git a/scripts/amalgamate.py b/scripts/amalgamate.py index 591ecff..fb60d25 100644 --- a/scripts/amalgamate.py +++ b/scripts/amalgamate.py @@ -62,12 +62,13 @@ def log(*msg): sys.stderr.write(message + '\n') def parse(path): + dir = dirname(path).replace('\\', '/') ## Windows. text = "" with open(path, 'r') as fp: for line in fp.readlines(): if "//<< AMALG_INLINE >>" in line: - path = join(dirname(path), _get_include_path(line)) - path = path.replace('\\', '/') ## Aaah windows path. + path = join(dir, _get_include_path(line)) + path = path.replace('\\', '/') text += parse(path) + '\n' else: text += line diff --git a/scripts/static_check.py b/scripts/static_check.py index 4038538..4e0e8ed 100644 --- a/scripts/static_check.py +++ b/scripts/static_check.py @@ -34,8 +34,7 @@ ALLOW_LONG_LINES = ('http://', 'https://', '