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 ] || {