Skip to content

Commit 8b6a88f

Browse files
author
Germano Fronza
committed
Fix entry point
1 parent e045cac commit 8b6a88f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ecs_deploy.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,5 +310,9 @@ def client_fn(self, fn):
310310
print('Exception: %s' % e)
311311
sys.exit(1)
312312

313-
if __name__ == '__main__':
313+
def main():
314314
CLI()
315+
316+
if __name__ == '__main__':
317+
main()
318+

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def run_tests(self):
9595
'Topic :: Software Development :: Libraries :: Python Modules'],
9696
entry_points={
9797
'console_scripts': [
98-
'ecs-deploy-py = ecs_deploy:CLI'
98+
'ecs-deploy-py = ecs_deploy:main'
9999
]
100100
}
101101
)

0 commit comments

Comments
 (0)