def local_home_directory(name=''):
 with settings(hide('running', 'stdout')):
  return local(('echo ~' + name), capture=True)

def local_home_directory ( name = '' ) : with settings ( hide ( 'running' , 'stdout' ) ) : return local ( ( 'echo ~' + name ) , capture = True )
get the absolute path to the local users home directory example:: import fabtools local_home = fabtools .