summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/hello.py (renamed from src/hello/hello.py)5
-rw-r--r--src/hello/__init__.py0
2 files changed, 3 insertions, 2 deletions
diff --git a/src/hello/hello.py b/src/hello.py
index a97e848..1e0e056 100755
--- a/src/hello/hello.py
+++ b/src/hello.py
@@ -6,5 +6,6 @@ def greet(who_to_greet: str):
return 'Hello ' + who_to_greet
-greeting = greet(sys.argv[1])
-print(greeting)
+if __name__ == '__main__':
+ greeting = greet(sys.argv[1])
+ print(greeting)
diff --git a/src/hello/__init__.py b/src/hello/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/src/hello/__init__.py
+++ /dev/null