How to use the importlab.fs.Path function in importlab

To help you get started, we’ve selected a few importlab examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github google / importlab / importlab / environment.py View on Github external
def path_from_pythonpath(pythonpath):
    """Create an fs.Path object from a pythonpath string."""
    path = fs.Path()
    for p in pythonpath.split(os.pathsep):
        path.add_path(utils.expand_path(p), 'os')
    return path