Fix a bug when registering just a single component. Not part of the build.

This commit is contained in:
mhammond%skippinet.com.au 2003-08-06 01:04:15 +00:00
Родитель e5276da2fb
Коммит 08d4596aaa
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -65,6 +65,7 @@ class PythonComponentLoader:
def __init__(self): def __init__(self):
self.com_modules = {} # Keyed by module's FQN as obtained from nsIFile.path self.com_modules = {} # Keyed by module's FQN as obtained from nsIFile.path
self.moduleFactory = module.Module self.moduleFactory = module.Module
self.num_modules_this_register = 0
def _getCOMModuleForLocation(self, componentFile): def _getCOMModuleForLocation(self, componentFile):
fqn = componentFile.path fqn = componentFile.path
@ -151,7 +152,7 @@ class PythonComponentLoader:
return 1 return 1
if self.num_modules_this_register == 0: if self.num_modules_this_register == 0:
# New conponents may have just installed new Python # New components may have just installed new Python
# modules into the main python directory (including new .pth files) # modules into the main python directory (including new .pth files)
# So we ask Python to re-process our site directory. # So we ask Python to re-process our site directory.
# Note that the pyloader does the equivalent when loading. # Note that the pyloader does the equivalent when loading.