From 7a8c43ee6a1f9c50bec8cc5234eff8b1d5e61088 Mon Sep 17 00:00:00 2001 From: Johannes Gijsbers Date: Sat, 11 Sep 2004 16:34:35 +0000 Subject: Add 'if __name__ == "__main__":' to files already as a usable as a module. --- Demo/scripts/fact.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Demo/scripts/fact.py') diff --git a/Demo/scripts/fact.py b/Demo/scripts/fact.py index 5497f6650e..03cab8bb85 100755 --- a/Demo/scripts/fact.py +++ b/Demo/scripts/fact.py @@ -45,4 +45,5 @@ def main(): except EOFError: pass -main() +if __name__ == "__main__": + main() -- cgit v1.2.1