From 8029d26c6b327e7e41259969c89ae99ab02b7c09 Mon Sep 17 00:00:00 2001 From: Abdelrahman Said Date: Sun, 2 Mar 2025 12:07:28 +0000 Subject: [PATCH] Revert "Restructure to keep __main__ free to be used when using codegen as part" This reverts commit 87abfe89007f68dd480826c2fff1e7472960ac36. --- codegen/__main__.py | 8 ++++---- codegen/{codegen_example.py => codegen.py} | 0 codegen/dev_main.py | 6 ------ run | 2 +- 4 files changed, 5 insertions(+), 11 deletions(-) rename codegen/{codegen_example.py => codegen.py} (100%) delete mode 100644 codegen/dev_main.py diff --git a/codegen/__main__.py b/codegen/__main__.py index cd9ac48..fae93c7 100644 --- a/codegen/__main__.py +++ b/codegen/__main__.py @@ -1,6 +1,6 @@ -def main(): - pass - +from .codegen import test_str8, test_doubly_linked_list, test_typed_array if __name__ == "__main__": - main() + test_str8() + test_typed_array() + test_doubly_linked_list() diff --git a/codegen/codegen_example.py b/codegen/codegen.py similarity index 100% rename from codegen/codegen_example.py rename to codegen/codegen.py diff --git a/codegen/dev_main.py b/codegen/dev_main.py deleted file mode 100644 index d1078da..0000000 --- a/codegen/dev_main.py +++ /dev/null @@ -1,6 +0,0 @@ -from .codegen_example import test_str8, test_doubly_linked_list, test_typed_array - -if __name__ == "__main__": - test_str8() - test_typed_array() - test_doubly_linked_list() diff --git a/run b/run index 19e8e9d..6d8984c 100755 --- a/run +++ b/run @@ -1,3 +1,3 @@ #!/bin/bash -python3 -m codegen.dev_main +python3 -m codegen