ref: 6191559c539af5b4e6f05254d10c6f52993d0321
parent: a74462bc52ee3050e13680cd35156589e7f45555
author: Bryan Bishop <[email protected]>
date: Sat Aug 31 08:12:09 EDT 2013
give preprocessor.py a main()
--- a/preprocessor.py
+++ b/preprocessor.py
@@ -658,8 +658,11 @@
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()