Alessandro Angelino / mbed-tools

Fork of mbed-tools by Morpheus

Embed: (wiki syntax)

« Back to documentation index

sources::utils Namespace Reference

sources::utils Namespace Reference

Functions

def find_cmd_abspath
def copy_file
def get_caller_name
def construct_enum
def check_required_modules

Detailed Description

mbed SDK
Copyright (c) 2011-2013 ARM Limited

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Function Documentation

def sources::utils::check_required_modules (   required_modules,
  verbose = True 
)
Function checks for Python modules which should be "importable" (installed)
    before test suite can be used.
    @return returns True if all modules are installed already

Definition at line 146 of file utils.py.

def sources::utils::construct_enum (   enums )
Create your own pseudo-enums 

Definition at line 141 of file utils.py.

def sources::utils::copy_file (   src,
  dst 
)
Implement the behaviour of "shutil.copy(src, dst)" without copying the
    permissions (this was causing errors with directories mounted with samba)

Definition at line 83 of file utils.py.

def sources::utils::find_cmd_abspath (   cmd )
Returns the absolute path to a command.
    None is returned if no absolute path was found.

Definition at line 63 of file utils.py.

def sources::utils::get_caller_name (   steps = 2 )
When called inside a function, it returns the name
of the caller of that function.

Definition at line 103 of file utils.py.