From 28dabf2271cc9900ac2f533e849a73c174e63bb6 Mon Sep 17 00:00:00 2001 From: Bumsik Kim Date: Thu, 28 Jun 2018 10:26:41 -0400 Subject: [PATCH] Changed main.py to __main__.py --- Makefile | 4 ++++ setup.py | 2 +- virtscreen/{main.py => __main__.py} | 0 3 files changed, 5 insertions(+), 1 deletion(-) rename virtscreen/{main.py => __main__.py} (100%) diff --git a/Makefile b/Makefile index 7e6a975..c690812 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,10 @@ DOCKER_RUN_TTY=docker run --interactive --tty -v $(shell pwd):/app $(DOCKER_NAME .ONESHELL: +# Run script +run: + python3 -m virtscreen + # Docker tools .PHONY: docker docker-build diff --git a/setup.py b/setup.py index a6b2abb..9db64e6 100644 --- a/setup.py +++ b/setup.py @@ -195,7 +195,7 @@ setup( # executes the function `main` from this package when invoked: entry_points={ # Optional 'console_scripts': [ - 'virtscreen = virtscreen.main:main', + 'virtscreen = virtscreen.__main__:main', ], }, diff --git a/virtscreen/main.py b/virtscreen/__main__.py similarity index 100% rename from virtscreen/main.py rename to virtscreen/__main__.py