From e236b38731823aeb87bb6d101062f54a72044954 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Mon, 9 Aug 2004 17:27:55 +0000 Subject: [Patch #1005491 ] use __name__ == '__main__' in scripts --- Tools/scripts/xxci.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'Tools/scripts/xxci.py') diff --git a/Tools/scripts/xxci.py b/Tools/scripts/xxci.py index 681ce0b88e..c6a7d08720 100755 --- a/Tools/scripts/xxci.py +++ b/Tools/scripts/xxci.py @@ -109,8 +109,9 @@ def askyesno(prompt): s = raw_input(prompt) return s in ['y', 'yes'] -try: - setup() - go(getargs()) -except KeyboardInterrupt: - print '[Intr]' +if __name__ == '__main__': + try: + setup() + go(getargs()) + except KeyboardInterrupt: + print '[Intr]' -- cgit v1.2.1