(paths)
Scan for and add paths to the include path
Scan for and add paths to the include path
Scan for and add paths to the include path
def load_include_path(paths):
    """
    Scan for and add paths to the include path
    """
    for path in paths:
        # Verify the path is valid
        if not os.path.isdir(path):
            continue
        # Add path to the system path, to avoid name clashes
        # with mysql-connector for example ...
        if path not in sys.path:
            sys.path.insert(1, path)
        # Load all the files in path
        for f in os.listdir(path):
            # Are we a directory? If so process down the tree
            fpath = os.path.join(path, f)
            if os.path.isdir(fpath):
                load_include_path([fpath])
def load_include_path ( paths ) : for path in paths : # Verify the path is valid if not os . path . isdir ( path ) : continue # Add path to the system path, to avoid name clashes # with mysql-connector for example ... if path not in sys . path : sys . path . insert ( 1 , path ) # Load all the files in path for f in os . listdir ( path ) : # Are we a directory? If so process down the tree fpath = os . path . join ( path , f ) if os . path . isdir ( fpath ) : load_include_path ( [ fpath ] )