This commit is contained in:
yumoqing 2024-01-26 15:55:42 +08:00
parent ae4c8721b6
commit 1fd4697cfd

View File

@ -1,4 +1,5 @@
import os
from io import StringIO, BytesIO
import sys
import argparse
# from dataui.bricks_parser import BricksCRUDProcessor
@ -49,4 +50,7 @@ if __name__ == '__main__':
logger.debug(f'debug mode show ?')
port = args.port or config.website.port or 8080
port = int(port)
g = ServerEnv()
g.StringIO = StringIO
g.BytesIO = BytesIO
server.run(port=port)