You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
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.
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user