def home_directory(name):
 with settings(hide('running', 'stdout')):
  return run(('echo ~' + name))

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