浏览代码

Correct dest variable instantiation

Adrien Ferrand 6 年之前
父节点
当前提交
232962ade5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      nsist/copymodules.py

+ 1 - 1
nsist/copymodules.py

@@ -162,8 +162,8 @@ def copy_distribution(modname, target):
         return
         return
 
 
     egg_info_path = distribution._provider.egg_info
     egg_info_path = distribution._provider.egg_info
+    dest = os.path.join(target, os.path.basename(egg_info_path))
     if os.path.exists(egg_info_path) and not os.path.exists(dest):
     if os.path.exists(egg_info_path) and not os.path.exists(dest):
-        dest = os.path.join(target, os.path.basename(egg_info_path))
         shutil.copytree(egg_info_path, dest)
         shutil.copytree(egg_info_path, dest)