From 66fab46d7edc0c20d0c74c74daca70d022f9a5c6 Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 1 Aug 2017 01:25:10 +0200 Subject: main() called only if playoff.py is an entry script --- playoff.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playoff.py b/playoff.py index 2049532..83d3dc3 100644 --- a/playoff.py +++ b/playoff.py @@ -13,4 +13,5 @@ def main(): file_manager.copy_scripts() file_manager.send_files() -main() +if __name__ == '__main__': + main() -- cgit v1.2.3