Skip to content

Commit

Permalink
apparently this logic was needed
Browse files Browse the repository at this point in the history
  • Loading branch information
nichind committed Nov 11, 2024
1 parent 8a9f75c commit 708d511
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pybalt/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -116,3 +115,6 @@ async def _():
with open(update_check_file, "w") as f:
f.write(str(int(time())))
run(_())

if __name__ == "__main__":
main()

0 comments on commit 708d511

Please sign in to comment.