def resolve_path(path, root):
 if (not os.path.isabs(path)):
  path = os.path.join(root, path)
 return path

def resolve_path ( path , root ) : if ( not os . path . isabs ( path ) ) : path = os . path . join ( root , path ) return path
if path is relative make absolute by prepending root .