Răsfoiți Sursa

Merge pull request #158 from takluyver/norm-dest-path

Normalize destination paths to Windows style (backslashes)
Thomas Kluyver 6 ani în urmă
părinte
comite
0108e1243f
1 a modificat fișierele cu 4 adăugiri și 1 ștergeri
  1. 4 1
      nsist/__init__.py

+ 4 - 1
nsist/__init__.py

@@ -393,7 +393,10 @@ if __name__ == '__main__':
             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):