From 9362ca3ed9d72390355660e2a8f999757c7d7287 Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 11 Jul 2022 23:53:18 +0200 Subject: [PATCH] py2 fixes --- copyparty/__main__.py | 2 +- scripts/make-sfx.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/copyparty/__main__.py b/copyparty/__main__.py index af1be68e..e68bde0c 100644 --- a/copyparty/__main__.py +++ b/copyparty/__main__.py @@ -275,7 +275,7 @@ def disable_quickedit() -> None: raise ctypes.WinError(err) # type: ignore return args - k32 = ctypes.WinDLL("kernel32", use_last_error=True) # type: ignore + k32 = ctypes.WinDLL(str("kernel32"), use_last_error=True) # type: ignore if PY2: wintypes.LPDWORD = ctypes.POINTER(wintypes.DWORD) diff --git a/scripts/make-sfx.sh b/scripts/make-sfx.sh index 7402c517..4981d78a 100755 --- a/scripts/make-sfx.sh +++ b/scripts/make-sfx.sh @@ -106,7 +106,7 @@ tmpdir="$( [ $repack ] && { old="$tmpdir/pe-copyparty" echo "repack of files in $old" - cp -pR "$old/"*{j2,ftp,copyparty} . + cp -pR "$old/"*{py2,j2,ftp,copyparty} . } [ $repack ] || {