From d5c916f69c7dbca38077de6c127381b8f8f0f254 Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Tue, 20 Feb 2018 11:20:29 -0600 Subject: [PATCH] proton: Delete Steam files before copying them --- proton | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proton b/proton index 2dc0457e..368118c7 100755 --- a/proton +++ b/proton @@ -126,7 +126,10 @@ filestocopy = ["steamclient.dll", "Steam.dll"] for f in filestocopy: if os.path.isfile(steamdir + f): - shutil.copy(steamdir + f, dst + "Steam/" + f) + dstfile = dst + "Steam/" + f + if os.path.isfile(dstfile): + os.remove(dstfile) + shutil.copy(steamdir + f, dstfile) #copy openvr files into place dst = prefix + "/drive_c/vrclient/bin/"