ifw  0.0.1-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions
ctdPyUtils Namespace Reference

Classes

class  ConstantRegistry
 Class to handle conversion between state names and the corresponding number representation. More...
 

Functions

def get_location
 
def get_module
 Get the name of the current module. More...
 
def get_ip_address
 Return IP address of execution node. More...
 
def get_iso_time
 Return ISO8601 time for the time at the invocation. More...
 
def debug
 Print a debug log to stdout. More...
 
def revert_dic
 Revert a dictionary (making the values to keys and vice versa). More...
 
def key_in_dic
 Return True if the given key is in the dictionary. More...
 
def resolve_path
 Resolve the given path. More...
 
def find_file
 Search for a file with the given name in the locations specified. More...
 

Function Documentation

def ctdPyUtils.debug (   msg)

Print a debug log to stdout.

def ctdPyUtils.find_file (   filename,
  root_dirs = ["INTROOT",
  CFGROOT,
  DATAROOT,
  SYSROOT,
  resource_dirs = ["config",
  audio,
  image,
  model,
  dictionary,
  data,
  exception = True 
)

Search for a file with the given name in the locations specified.

def ctdPyUtils.get_ip_address ( )

Return IP address of execution node.

def ctdPyUtils.get_iso_time ( )

Return ISO8601 time for the time at the invocation.

def ctdPyUtils.get_location (   level = -3)
def ctdPyUtils.get_module ( )

Get the name of the current module.

def ctdPyUtils.key_in_dic (   dic,
  key 
)

Return True if the given key is in the dictionary.

def ctdPyUtils.resolve_path (   path)

Resolve the given path.

def ctdPyUtils.revert_dic (   dic)

Revert a dictionary (making the values to keys and vice versa).