Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)
This dependency write outputs dependency information in a format
consistent with the GCC -M flags.

        def output_dependency_info(dependency_file, output_file, dependencies):
    """
    This dependency write outputs dependency information in a format
    consistent with the GCC -M flags.
    """

    try:
        with open(dependency_file, "wb") as f:
            f.write(output_file)
            f.write(" ")
            f.write(dependency_file)
            f.write(" : \\\n")
            for d in dependencies:
                f.write("    ")
                f.write(d)
                f.write(" \\\n")
            f.write("\n\n")
            for d in dependencies:
                f.write(d)
                f.write(" :\n\n")
    except IOError:
        raise ToolsException("failed to write file: %s" % dependency_file)
        


src/t/u/turbulenz_tools-1.0.5/turbulenz_tools/tools/maketzjs.py   turbulenz_tools(Download)
from turbulenz_tools.tools.appcodegen import context_from_options
from turbulenz_tools.tools.appcodegen import default_parser_options
from turbulenz_tools.tools.appcodegen import output_dependency_info
 
from turbulenz_tools.tools.toolsexception import ToolsException
 
    # LOG.info("deps are: %s" % deps)
    output_dependency_info(options.dependency_file, options.output, deps)
 
    return 0

src/t/u/turbulenz_tools-HEAD/turbulenz_tools/tools/maketzjs.py   turbulenz_tools(Download)
from turbulenz_tools.tools.appcodegen import context_from_options
from turbulenz_tools.tools.appcodegen import default_parser_options
from turbulenz_tools.tools.appcodegen import output_dependency_info
 
from turbulenz_tools.tools.toolsexception import ToolsException
 
    # LOG.info("deps are: %s" % deps)
    output_dependency_info(options.dependency_file, options.output, deps)
 
    return 0

src/t/u/turbulenz_tools-1.0.5/turbulenz_tools/tools/makehtml.py   turbulenz_tools(Download)
from turbulenz_tools.tools.appcodegen import default_parser_options
from turbulenz_tools.tools.appcodegen import DEFAULT_HTML_TEMPLATE
from turbulenz_tools.tools.appcodegen import output_dependency_info
 
from turbulenz_tools.tools.toolsexception import ToolsException
    # Write dependency info
 
    output_dependency_info(outfile_name, options.output, deps)
 
    return 0

src/t/u/turbulenz_tools-HEAD/turbulenz_tools/tools/makehtml.py   turbulenz_tools(Download)
from turbulenz_tools.tools.appcodegen import default_parser_options
from turbulenz_tools.tools.appcodegen import DEFAULT_HTML_TEMPLATE
from turbulenz_tools.tools.appcodegen import output_dependency_info
 
from turbulenz_tools.tools.toolsexception import ToolsException
    # Write dependency info
 
    output_dependency_info(outfile_name, options.output, deps)
 
    return 0