Corrected typo in reccmp.py (#169)

This commit is contained in:
Angel 2023-10-06 01:26:48 -04:00 committed by GitHub
parent 666c65fa4f
commit 5ac6cf55a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,7 +114,7 @@ def __init__(self, unix_cwd):
def get_wine_path(self, unix_fn: str) -> str:
if unix_fn.startswith('./'):
return self.win_cmd + '\\' + unix_fn[2:].replace('/', '\\')
return self.win_cwd + '\\' + unix_fn[2:].replace('/', '\\')
if unix_fn.startswith(self.unix_cwd):
return self.win_cwd + '\\' + unix_fn.removeprefix(self.unix_cwd).replace('/', '\\').lstrip('\\')
return self._call_winepath_unix2win(unix_fn)