浏览代码

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

Normalize destination paths to Windows style (backslashes)
Thomas Kluyver 6 年之前
父节点
当前提交
0108e1243f
共有 1 个文件被更改,包括 4 次插入1 次删除
  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):