from .module_list import ModuleInfoDict
-__version__ = '0.3.1'
+__version__ = '0.3.2'
LOG = logging.getLogger(__name__)
base_dir=base_dir, initialized=False,
)
+ if env_root_dir is not None:
+ self.env_root_dir = env_root_dir
+
+ if environment is not None:
+ self.environment = environment
+
if initialized is not None:
self.initialized = initialized
appname=self.appname, verbose=self.verbose, base_dir=self.base_dir,
line=prev_line, env=self.environment)
if module_info:
- full_name = module_info.full_name
- if full_name in modules:
- modules[full_name].merge_in(module_info)
- else:
- modules[full_name] = module_info
+ modules.merge(module_info)
prev_line = ''
appname=self.appname, verbose=self.verbose, base_dir=self.base_dir,
line=prev_line, env=self.environment)
if module_info:
- full_name = module_info.full_name
- if full_name in self.modules:
- modules[full_name].merge_in(module_info)
- else:
- modules[full_name] = module_info
+ modules.merge(module_info)
if self.verbose > 1:
LOG.debug("Closing {!r} ...".format(self.filename))