Explorar o código

Fix typo in copymodules

Johannes Baiter %!s(int64=11) %!d(string=hai) anos
pai
achega
5f06a77352
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      nsist/copymodules.py

+ 1 - 1
nsist/copymodules.py

@@ -104,7 +104,7 @@ else:
                 # NOTE: `imp.find_module(...)` will *not* find modules in ZIP
                 # NOTE: `imp.find_module(...)` will *not* find modules in ZIP
                 #       files, so we have to check each file for ourselves
                 #       files, so we have to check each file for ourselves
                 for zpath in self.zip_path:
                 for zpath in self.zip_path:
-                    loader = zipimport.zipimporter(fpath)
+                    loader = zipimport.zipimporter(zpath)
                     if loader.find_module(modname) is None:
                     if loader.find_module(modname) is None:
                         continue
                         continue
                     copy_zipmodule(loader, modname, target)
                     copy_zipmodule(loader, modname, target)