Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

        def truepath(path):
    path = os.path.expanduser(path)
    path = os.path.abspath(path)
    return path
        


src/h/o/homefiles-2.0.6/homefiles/__init__.py   homefiles(Download)
        # callers
        bundle = bundle or 'Default'
        src_path = utils.truepath(path)
        is_directory = os.path.isdir(src_path)
 
    def untrack(self, path):
        dst_path = utils.truepath(path)
 
        if not os.path.exists(dst_path):
            raise Exception("Path '%s' not found" % dst_path)

src/h/o/homefiles-2.0.6/homefiles/main.py   homefiles(Download)
    utils.LOG_VERBOSE = options.verbose or options.dry_run
 
    repo_path = utils.truepath(os.getenv('HOMEFILES_REPO') or DEFAULT_REPO)
    root_path = utils.truepath(os.getenv('HOMEFILES_ROOT') or DEFAULT_ROOT)
    remote_repo = os.getenv('HOMEFILES_REMOTE_REPO') or DEFAULT_REMOTE_REPO