[Patch #1005491 ] use __name__ == '__main__' in scripts
diff --git a/Tools/scripts/xxci.py b/Tools/scripts/xxci.py
index 681ce0b..c6a7d08 100755
--- a/Tools/scripts/xxci.py
+++ b/Tools/scripts/xxci.py
@@ -109,8 +109,9 @@
     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]'