diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-08-31 12:12:09 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-08-31 12:12:09 -0500 |
commit | 6191559c539af5b4e6f05254d10c6f52993d0321 (patch) | |
tree | b8f7eb912a67e226bcf1796a90ea0fb360963dba /preprocessor.py | |
parent | a74462bc52ee3050e13680cd35156589e7f45555 (diff) |
give preprocessor.py a main()
Diffstat (limited to 'preprocessor.py')
-rw-r--r-- | preprocessor.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/preprocessor.py b/preprocessor.py index 10e407380..a8be0ee76 100644 --- a/preprocessor.py +++ b/preprocessor.py @@ -658,8 +658,11 @@ def preprocess(macro_table, lines=None): for l in lines: read_line(l, macro_table) -# only run against stdin when not included as a module -if __name__ == "__main__": +def main(): macros = load_pokecrystal_macros() macro_table = make_macro_table(macros) preprocess(macro_table) + +# only run against stdin when not included as a module +if __name__ == "__main__": + main() |