comparison pyloader/factory.py @ 73:65c95094dbb3

replace path
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 09 Jun 2011 18:07:39 -0700
parents 6f384c989a29
children 1f76705df520
comparison
equal deleted inserted replaced
72:6f384c989a29 73:65c95094dbb3
138 _wrapper_options, __path = path.split(':', 1) 138 _wrapper_options, __path = path.split(':', 1)
139 if ',' in _wrapper_options or '=' in _wrapper_options: 139 if ',' in _wrapper_options or '=' in _wrapper_options:
140 # ,= : tokens to ensure these are wrapper options 140 # ,= : tokens to ensure these are wrapper options
141 # as these shouldn't be found in a real path (dotted path or file path) 141 # as these shouldn't be found in a real path (dotted path or file path)
142 _wrapper_args, _wrapper_kwargs = factory.str2args(_wrapper_options) 142 _wrapper_args, _wrapper_kwargs = factory.str2args(_wrapper_options)
143 _path = __path
143 144
144 if _path in names: 145 if _path in names:
145 # [foo:bar:fleem] 146 # [foo:bar:fleem]
146 wrapped_name = _path 147 wrapped_name = _path
147 else: 148 else: