|
@@ -1,4 +1,3 @@
|
|
|
-from distutils.command.config import config
|
|
|
from typing import Awaitable, Callable, Optional, Union
|
|
|
import inspect
|
|
|
import sys
|
|
@@ -11,11 +10,17 @@ if not globals.config.interactive and globals.config.reload and not inspect.stac
|
|
|
|
|
|
if globals.config.show:
|
|
|
webbrowser.open(f'http://{globals.config.host}:{globals.config.port}/')
|
|
|
- uvicorn.run('nicegui:app', host=globals.config.host, port=globals.config.port, lifespan='on', reload=True,
|
|
|
- reload_includes=globals.config.uvicorn_reload_includes,
|
|
|
- reload_excludes=globals.config.uvicorn_reload_excludes,
|
|
|
- reload_dirs=globals.config.uvicorn_reload_dirs,
|
|
|
- log_level=globals.config.uvicorn_logging_level)
|
|
|
+ uvicorn.run(
|
|
|
+ 'nicegui:app',
|
|
|
+ host=globals.config.host,
|
|
|
+ port=globals.config.port,
|
|
|
+ lifespan='on',
|
|
|
+ reload=True,
|
|
|
+ reload_includes=globals.config.uvicorn_reload_includes,
|
|
|
+ reload_excludes=globals.config.uvicorn_reload_excludes,
|
|
|
+ reload_dirs=globals.config.uvicorn_reload_dirs,
|
|
|
+ log_level=globals.config.uvicorn_logging_level,
|
|
|
+ )
|
|
|
sys.exit()
|
|
|
|
|
|
def run(self, *,
|