def get_ros_home(env=None):
 if (env is None):
  env = os.environ
 if (ROS_HOME in env):
  return env[ROS_HOME]
 else:
  return os.path.join(os.path.expanduser('~'), '.ros')

def get_ros_home ( env = None ) : if ( env is None ) : env = os . environ if ( ROS_HOME in env ) : return env [ ROS_HOME ] else : return os . path . join ( os . path . expanduser ( '~' ) , '.ros' )
get directory location of .