This commit is contained in:
yumoqing 2026-04-09 23:30:50 +08:00
parent 10d6d919ce
commit 3b08e981ca
3 changed files with 15 additions and 7 deletions

View File

@ -5,7 +5,10 @@ import sys
import codecs
from urllib.parse import quote
import json
try:
import uvloop
except:
pass
import asyncio
from contextlib import asynccontextmanager
@ -263,6 +266,7 @@ def background_reco(reco, *args, **kw):
def get_loop_type():
loop = asyncio.get_event_loop()
if uvloop:
if isinstance(loop, uvloop.Loop):
return 'uvloop.Loop'
return str(type(loop))

View File

@ -1,8 +1,12 @@
import uvloop
uvloop.install()
import os, sys
import argparse
try:
import uvloop
if sys.platform != 'win32':
uvloop.install()
except Exception as e:
pass
from appPublic.log import MyLogger, info, debug, warning
import argparse
from appPublic.folderUtils import ProgramPath
from appPublic.jsonConfig import getConfig
from ahserver.configuredServer import ConfiguredServer

View File

@ -1,7 +1,7 @@
# setup.cfg
[metadata]
name = ahserver
version = 1.1.4
version = 1.2.0
description = A application server base on aiohttp
author = yu moqing
author_email = yumoqing@gmail.com