Skip to content

Commit

Permalink
[cli] Prevent running file twice
Browse files Browse the repository at this point in the history
  • Loading branch information
iiPythonx committed Apr 7, 2023
1 parent 543ebd7 commit da5035b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xpp/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,5 @@ def main() -> None:
except Exception as e:
handle_exception(e, interpreter.stack)

main()
if __name__ == "__main__": # Don't run twice from setup.py import
main()

0 comments on commit da5035b

Please sign in to comment.