fix: don't use AsyncPath.cwd()
async await
This commit is contained in:
parent
df00e6b679
commit
f0c51530c4
0
worthless/cli.py
Executable file → Normal file
0
worthless/cli.py
Executable file → Normal file
@ -28,7 +28,7 @@ except ImportError:
|
|||||||
|
|
||||||
|
|
||||||
class Patcher:
|
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"):
|
patch_url: str = None, overseas=True, patch_provider="Krock"):
|
||||||
if isinstance(gamedir, str | Path):
|
if isinstance(gamedir, str | Path):
|
||||||
gamedir = AsyncPath(gamedir)
|
gamedir = AsyncPath(gamedir)
|
||||||
|
Loading…
Reference in New Issue
Block a user