diff --git a/tools/cap.py b/tools/cap.py index 11ecfc64e2..cd6ba56751 100755 --- a/tools/cap.py +++ b/tools/cap.py @@ -134,5 +134,6 @@ def main(): for line in cap(requirements, frozen): print(line) + if __name__ == '__main__': main() diff --git a/tools/check-install.py b/tools/check-install.py index 14fc45116b..d638c5f03c 100644 --- a/tools/check-install.py +++ b/tools/check-install.py @@ -25,5 +25,6 @@ def main(): errors += 1 return 1 if errors else 0 + if __name__ == '__main__': sys.exit(main())