From 3a16d51da869e544e07ac6409cecc558c20f7d53 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Sat, 11 Aug 2018 13:04:23 +0200 Subject: [PATCH] Normalize destination paths to Windows style (backslashes) Closes gh-154 --- nsist/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nsist/__init__.py b/nsist/__init__.py index f67a900..54952ea 100644 --- a/nsist/__init__.py +++ b/nsist/__init__.py @@ -393,7 +393,10 @@ def copy_extra_files(self): file = file.rstrip('/\\') basename = os.path.basename(file) - if not destination: + if destination: + # Normalize destination paths to Windows-style + destination = destination.replace('/', '\\') + else: destination = '$INSTDIR' if os.path.isdir(file):