summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-08-01 01:25:10 +0200
committeremkael <emkael@tlen.pl>2017-08-01 01:25:10 +0200
commit66fab46d7edc0c20d0c74c74daca70d022f9a5c6 (patch)
tree8f3f751c103ce786c8c00135912c2486725fbfa5
parent86b6207e42a61b18318ac7ef34eb603df740db04 (diff)
main() called only if playoff.py is an entry script
-rw-r--r--playoff.py3
1 files changed, 2 insertions, 1 deletions
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()