зеркало из https://github.com/mozilla/gecko-dev.git
Fix a bug when registering just a single component. Not part of the build.
This commit is contained in:
Родитель
e5276da2fb
Коммит
08d4596aaa
|
@ -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.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче