wtools
ESO waf tools
wtools.utils Namespace Reference

Functions

def get_wscript_frame ()
 
def add_taskgen_method (tg, method, before='', after='')
 
def merge_unique_items_to_list (base_list, merged_list)
 
def merge_unique_items_to_dict (base_dict, merged_dict)
 
def sanitize_bash_variable_name (variable_name)
 
def check_project_naming_convention (name)
 

Detailed Description

Utility methods for wtools.

Function Documentation

◆ add_taskgen_method()

def wtools.utils.add_taskgen_method (   tg,
  method,
  before = '',
  after = '' 
)
Add `method` to taskgen with ordering constrains using
`before` and `after`.

◆ check_project_naming_convention()

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"_".

◆ merge_unique_items_to_dict()

def wtools.utils.merge_unique_items_to_dict (   base_dict,
  merged_dict 
)
Merge unique items from merged_dict to base_dict.

◆ merge_unique_items_to_list()

def wtools.utils.merge_unique_items_to_list (   base_list,
  merged_list 
)
Merge unique items from merged_list to base_list.

◆ sanitize_bash_variable_name()

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.