@contextmanager<EOL>def add_sys_paths(paths):
original_syspath = sys.path[:]<EOL>sys.path.extend(paths)<EOL>try:<EOL><INDENT>yield<EOL><DEDENT>finally:<EOL><INDENT>sys.path = original_syspath<EOL><DEDENT>
Add to sys.path, and revert on scope exit.