def rel_posix_to_abs_local(host, path, environ=None):
 if (environ is None):
  environ = os.environ
 if path.startswith('/'):
  path = path[1:]
 root = path_for_host(host, environ)
 return os.path.join(root, *path.split('/'))

def rel_posix_to_abs_local ( host , path , environ = None ) : if ( environ is None ) : environ = os . environ if path . startswith ( '/' ) : path = path [ 1 : ] root = path_for_host ( host , environ ) return os . path . join ( root , * path . split ( '/' ) )
convert a posix path to the current systems format and prepend the tmp directory the hosts files are in .