From 659668db2b23bc863ea733abd533d0c8ab4612b6 Mon Sep 17 00:00:00 2001 From: "CSSC-WORK\\murmur" Date: Thu, 25 Jan 2024 10:43:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B7=AF=E5=BE=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server.py b/server.py index d09cca0..e9645b5 100755 --- a/server.py +++ b/server.py @@ -29,12 +29,12 @@ def save2file(data,isR=1): """ t,d = gettm() - p = '/'.join(['trlog',d]) + p = '/'.join(['./trlog',d]) if not os.path.exists(p): os.makedirs(p) l=f"{'[R]' if isR else '[T]'} - {t} --- {data}\n" - f=open('/'.join(['trlog',d,'trlog.txt']),'a') + f=open('/'.join(['./trlog',d,'trlog.txt']),'a') f.write(l) f.close @@ -575,9 +575,9 @@ CCID:{pp[self.request].decode()} if __name__ == "__main__": _,t = gettm() - if not os.path.exists('debug'): - os.mkdir('debug') - logger.add('/'.join(['debug',t,'/log_{time}.log'])) + if not os.path.exists('./debug'): + os.mkdir('./debug') + logger.add('/'.join(['./debug',t,'/log_{time}.log'])) # load_cache if load_cache(): cache = load_cache()