diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-06-16 01:04:42 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-06-16 01:04:42 +0300 |
commit | dcb904416af1c9c9f6cbadc4832c600614cade4d (patch) | |
tree | 73fb83f4194666bc207e76ea8b48c82e4e71b3c2 /py/makeqstrdefs.py | |
parent | cd796f85aff18013d8024b034055f58044649d91 (diff) | |
download | micropython-dcb904416af1c9c9f6cbadc4832c600614cade4d.tar.gz micropython-dcb904416af1c9c9f6cbadc4832c600614cade4d.zip |
py/makeqstrdefs.py: Remove restriction that source path can't be absolute.
That's arbitrary restriction, in case of embedding, a source file path may
be absolute. For the purpose of filtering out system includes, checking
for ".c" suffix is enough.
Diffstat (limited to 'py/makeqstrdefs.py')
-rw-r--r-- | py/makeqstrdefs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/makeqstrdefs.py b/py/makeqstrdefs.py index 194d901d26..69aaefb3e6 100644 --- a/py/makeqstrdefs.py +++ b/py/makeqstrdefs.py @@ -30,7 +30,7 @@ def process_file(f): m = re.match(r"#[line]*\s\d+\s\"([^\"]+)\"", line) assert m is not None fname = m.group(1) - if fname[0] == "/" or not fname.endswith(".c"): + if not fname.endswith(".c"): continue if fname != last_fname: write_out(last_fname, output) |