wtools
ESO waf tools
 All Classes Namespaces Functions Pages
wtools.utils Namespace Reference

Functions

def get_wscript_frame
 
def add_taskgen_method
 
def merge_unique_items_to_list
 
def merge_unique_items_to_dict
 
def sanitize_bash_variable_name
 
def check_project_naming_convention
 

Detailed Description

Utility methods for wtools.

Function Documentation

def wtools.utils.add_taskgen_method (   tg,
  method,
  before = '',
  after = '' 
)
Add `method` to taskgen with ordering constrains using
`before` and `after`.
def wtools.utils.check_project_naming_convention (   name)
Checks if project naming convention is met for given name. If not ConfigurationError is raised.

The valid project name should start with a letter and contain letters, numbers, hyphen "-" and underscore"_".
def wtools.utils.merge_unique_items_to_dict (   base_dict,
  merged_dict 
)
Merge unique items from merged_dict to base_dict.
def wtools.utils.merge_unique_items_to_list (   base_list,
  merged_list 
)
Merge unique items from merged_list to base_list.
def wtools.utils.sanitize_bash_variable_name (   variable_name)
Adjust variable name to bash standard.

If variable name consists '-' chars, they are converted to '_' char.