fix: revert back to ThreadPoolExecutor

ProcessPoolExecutor didn't work for me :(
This commit is contained in:
tretrauit 2024-05-08 17:21:34 +07:00
parent f4e09a7aad
commit bbdb8d3596
4 changed files with 588 additions and 577 deletions

1150
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -12,7 +12,15 @@ platformdirs = "^3.5.1"
requests = "^2.31.0"
cleo = "^2.1.0"
packaging = "^23.2"
tqdm = { version = "^4.65.0", optional = true }
[tool.poetry.group.cli]
optional = true
[tool.poetry.group.cli.dependencies]
tqdm = "^4.65.0"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
pytest = "^7.3.1"

View File

@ -52,7 +52,7 @@ def callback(
channel = GameChannel(channel)
if temporary_path:
paths.set_base_path(temporary_path)
State.game: Game = Game(game_path, temporary_path)
State.game = Game(game_path, temporary_path)
if channel:
State.game.channel_override = channel
if patch_type is None:

View File

@ -18,7 +18,8 @@ def apply_update_archive(
voicepack update.
Because this function is shared for all games, you should use the game's
`apply_update_archive()` method instead.
`apply_update_archive()` method instead, which additionally applies required
methods for that game.
"""
# Most code here are copied from worthless-launcher.
# worthless-launcher uses asyncio for multithreading while this one uses