diff options
Diffstat (limited to 'Tools/scripts/pdeps.py')
-rwxr-xr-x | Tools/scripts/pdeps.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Tools/scripts/pdeps.py b/Tools/scripts/pdeps.py index 1589709..e835f84 100755 --- a/Tools/scripts/pdeps.py +++ b/Tools/scripts/pdeps.py @@ -160,7 +160,8 @@ def printresults(table): # Call main and honor exit status -try: - sys.exit(main()) -except KeyboardInterrupt: - sys.exit(1) +if __name__ == '__main__': + try: + sys.exit(main()) + except KeyboardInterrupt: + sys.exit(1) |