def isReplacementNeeded(config):
    """
    Check if we need to clean some junk from the source code files path
    :param config: configuration of the flask app
    :return (should_replace_path, new_src_dir)
    """
    should_replace_path = False
    if 'REPLACE_KERNEL_SRC' in config:
        should_replace_path = config['REPLACE_KERNEL_SRC']
    new_src_dir = None
    if 'SOURCECODE_DIR' in config:
        new_src_dir = config['SOURCECODE_DIR']
    return (should_replace_path, new_src_dir)