diff --git a/README.md b/README.md index c9d821c..5c933de 100644 --- a/README.md +++ b/README.md @@ -36,5 +36,5 @@ python -m webmeter --host={ip} --port={port} ```bash cd webmeter -python main.py +python __main__.py ``` diff --git a/setup.py b/setup.py index 63e2e32..9b95699 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setuptools.setup( install_requires=['fastapi','uvicorn', 'requests', 'logzero', 'fire','pyfiglet','psutil'], - version='1.0.3', + version='1.0.4', long_description=long_description, long_description_content_type="text/markdown", description="WebMeter - A web api-performance tool based on jmeter.", diff --git a/webmeter/web.py b/webmeter/web.py index b4f2b62..5f420d0 100644 --- a/webmeter/web.py +++ b/webmeter/web.py @@ -17,7 +17,7 @@ def status(host: str, port: int): return flag def start(host: str, port: int): - uvicorn.run("__main__:app", host=host, port=port, reload=False) + uvicorn.run("web:app", host=host, port=port, reload=False) def open(host: str, port: int): flag = True