From f0c51530c4a7b734d9ef8665a500f03f54936f08 Mon Sep 17 00:00:00 2001 From: tretrauit Date: Wed, 5 Jun 2024 09:49:00 +0700 Subject: [PATCH] fix: don't use AsyncPath.cwd() async await --- worthless/cli.py | 0 worthless/patcher.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 worthless/cli.py diff --git a/worthless/cli.py b/worthless/cli.py old mode 100755 new mode 100644 diff --git a/worthless/patcher.py b/worthless/patcher.py index dcc4a08..9b0d11e 100644 --- a/worthless/patcher.py +++ b/worthless/patcher.py @@ -28,7 +28,7 @@ except ImportError: class Patcher: - def __init__(self, gamedir: Path | AsyncPath | str = AsyncPath.cwd(), data_dir: str | Path | AsyncPath = None, + def __init__(self, gamedir: Path | AsyncPath | str = Path.cwd(), data_dir: str | Path | AsyncPath = None, patch_url: str = None, overseas=True, patch_provider="Krock"): if isinstance(gamedir, str | Path): gamedir = AsyncPath(gamedir)