deploy-ng: Fix hidden import logic

A chunk of code was left out of the previous commit.
This commit is contained in:
Mitchell Stokes 2017-12-16 23:50:49 -08:00
parent e504a49380
commit ccca2f39cb

View File

@ -1066,6 +1066,8 @@ class Freezer:
# Check if any new modules we found have "hidden" imports
for origName in list(self.mf.modules.keys()):
hidden = hiddenImports.get(origName, [])
for modname in hidden:
self.__loadModule(self.ModuleDef(modname, implicit = True))
# Now, any new modules we found get added to the export list.
for origName in list(self.mf.modules.keys()):