Explorar o código

Correct dest variable instantiation

Adrien Ferrand %!s(int64=6) %!d(string=hai) anos
pai
achega
232962ade5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      nsist/copymodules.py

+ 1 - 1
nsist/copymodules.py

@@ -162,8 +162,8 @@ def copy_distribution(modname, target):
         return
 
     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):
-        dest = os.path.join(target, os.path.basename(egg_info_path))
         shutil.copytree(egg_info_path, dest)