def complete_path(curr_dir, last_dir):
    if not last_dir or curr_dir.startswith(last_dir):
        return curr_dir
    elif last_dir == '~':
        return os.path.join(last_dir, curr_dir)
Constructs a URI for requesting a multiscope AuthSub token.
dataset/ETHPy150Open j-bennet/wharfee/wharfee/helpers.py/complete_path--crossover with--dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/attic/PicasaSnap/gdata/gauth.py/generate_auth_sub_url