SEP_COMMENTS = ';'
_PREFIX_INSTRUCTION = '#'
_ACC_MOD_INSTRUCTORS = {'description', 'balancer'}
SEP_COMMENTS = ';'
_PREFIX_INSTRUCTION = '#'
_ACC_MOD_INSTRUCTORS = {'description', 'balancer'}
def path_to_steps(full_path: str) -> Iterator[tuple[str, str]]:
'Split full_path into steps, for each return its path, basename.'
rebuilt_path = ''
def path_to_steps(full_path: str) -> Iterator[tuple[str, str]]:
'Split full_path into steps, for each return its path, basename.'
rebuilt_path = ''
- for step_name in full_path.split(':'):
- rebuilt_path += (':' if rebuilt_path else '') + step_name
+ for step_name in full_path.split(_SEP_ACCNAME_STEPS):
+ rebuilt_path += ((_SEP_ACCNAME_STEPS if rebuilt_path else '')
+ + step_name)