From 708d5117d300370a0bf4f599bd78f01f3525bfc9 Mon Sep 17 00:00:00 2001 From: nichind Date: Mon, 11 Nov 2024 13:53:06 +0300 Subject: [PATCH] apparently this logic was needed --- pybalt/__main__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pybalt/__main__.py b/pybalt/__main__.py index 65fcaff..c30c9df 100644 --- a/pybalt/__main__.py +++ b/pybalt/__main__.py @@ -104,8 +104,7 @@ async def _(): "\033[92mEverything Done!\033[0m Thanks for using pybalt! Leave a star on GitHub: https://github.com/nichind/pybalt" ) - -if __name__ == "__main__": +def main(): update_check_file = path.expanduser("~/.pybalt") if not path.exists(update_check_file): with open(update_check_file, "w") as f: @@ -116,3 +115,6 @@ async def _(): with open(update_check_file, "w") as f: f.write(str(int(time()))) run(_()) + +if __name__ == "__main__": + main()