mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-28 08:04:13 +08:00
fix
This commit is contained in:
parent
d23ae16f19
commit
6601c0d3a9
@ -446,8 +446,11 @@ class texthook(basetext):
|
||||
|
||||
_data, tms = self.newline_delaywait.get()
|
||||
collector.append(_data)
|
||||
now = time.time()
|
||||
time.sleep(min(now - tms, self.config["textthreaddelay"])/1000)
|
||||
targettime = tms + self.config["textthreaddelay"]
|
||||
sleepdur = targettime - time.time()
|
||||
sleepdur = max(0, sleepdur)
|
||||
sleepdur /= 1000
|
||||
time.sleep(sleepdur)
|
||||
if not self.newline_delaywait.empty():
|
||||
continue
|
||||
|
||||
|
1
build.py
1
build.py
@ -289,4 +289,5 @@ if __name__ == "__main__":
|
||||
subprocess.run(f"{py37Path} -m pip install -r requirements.txt")
|
||||
# 3.8之后会莫名其妙引用这个b东西,然后这个b东西会把一堆没用的东西导入进来
|
||||
shutil.rmtree(os.path.join(os.path.dirname(py37Path), "Lib\\test"))
|
||||
shutil.rmtree(os.path.join(os.path.dirname(py37Path), "Lib\\unittest"))
|
||||
subprocess.run(f"{py37Path} retrieval.py")
|
||||
|
Loading…
x
Reference in New Issue
Block a user