parameters: ()
return_statement: return result
docstring: Return the ELinOS environment.
  
      If the ELinOS environment is properly set up, return a dictionary
      which contains:
        * The path to the ELinOS project at key 'project';
        * The path to the ELinOS CDK at key 'cdk';
        * The ELinOS target name at key 'target' (Eg. 'i486-linux');
        * A list of Xenomai install prefixes (which could be empty, if
          the ELinOS project does not include Xenomai) at key 'xenomai'.
  
      If one of these cannot be found, print a warning; the corresponding
      value in the returned dictionary will be None.
docstring_summary: Return the ELinOS environment.
docstring_tokens: Return the ELinOS environment .
function: def get_elinos_environment():
      """Return the ELinOS environment.
  
      If the ELinOS environment is properly set up, return a dictionary
      which contains:
        * The path to the ELinOS project at key 'project';
        * The path to the ELinOS CDK at key 'cdk';
        * The ELinOS target name at key 'target' (Eg. 'i486-linux');
        * A list of Xenomai install prefixes (which could be empty, if
          the ELinOS project does not include Xenomai) at key 'xenomai'.
  
      If one of these cannot be found, print a warning; the corresponding
      value in the returned dictionary will be None.
      """
      result = {}
      for key in ("project", "cdk", "target"):
          var = "ELINOS_" + key.upper()
          if var in os.environ:
              result[key] = os.environ[var]
          else:
              warn("%s not set" % var)
              result[key] = None
  
      if result["project"] is not None:
          result["xenomai"] = glob.glob(result["project"] + "/xenomai-[0-9.]*")
      else:
          result["xenomai"] = []
  
      return result
function_tokens: def get_elinos_environment ( ) : result = { } for key in ( "project" , "cdk" , "target" ) : var = "ELINOS_" + key . upper ( ) if var in os . environ : result [ key ] = os . environ [ var ] else : warn ( "%s not set" % var ) result [ key ] = None if result [ "project" ] is not None : result [ "xenomai" ] = glob . glob ( result [ "project" ] + "/xenomai-[0-9.]*" ) else : result [ "xenomai" ] = [ ] return result