sanic/sanic/__main__.py

17 lines
265 B
Python
Raw Normal View History

from sanic.cli.app import SanicCLI
from sanic.compat import OS_IS_WINDOWS, enable_windows_color_support
2020-10-25 19:22:19 +00:00
2016-10-18 09:22:49 +01:00
if OS_IS_WINDOWS:
enable_windows_color_support()
2020-10-25 18:36:22 +00:00
def main():
cli = SanicCLI()
cli.attach()
cli.run()
if __name__ == "__main__":
main()