Skip to content

Commit da5035b

Browse files
committed
[cli] Prevent running file twice
1 parent 543ebd7 commit da5035b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xpp/__main__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,5 @@ def main() -> None:
9797
except Exception as e:
9898
handle_exception(e, interpreter.stack)
9999

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

0 commit comments

Comments
 (0)