parameters: (src_file, dst_file, defs)
docstring: Copies from src_file to dst_file, performing variable substitution.
  
    Any @@VARIABLE@@ in the source is replaced with the value of VARIABLE
    in the |defs| dictionary when written to the destination file.
  
    Args:
      src_file: Full or relative path to source file to copy.
      dst_file: Relative path (and filename) where src_file should be copied.
      defs: Dictionary of variable definitions.
docstring_summary: Copies from src_file to dst_file, performing variable substitution.
docstring_tokens: Copies from src_file to dst_file performing variable substitution .
function: def copyFileWithDefs(src_file, dst_file, defs):
    """Copies from src_file to dst_file, performing variable substitution.
  
    Any @@VARIABLE@@ in the source is replaced with the value of VARIABLE
    in the |defs| dictionary when written to the destination file.
  
    Args:
      src_file: Full or relative path to source file to copy.
      dst_file: Relative path (and filename) where src_file should be copied.
      defs: Dictionary of variable definitions.
    """
    data = open(src_file, 'r').read()
    for key, val in defs.iteritems():
      try:
        data = data.replace('@@' + key + '@@', val)
      except TypeError:
        print repr(key), repr(val)
    open(dst_file, 'w').write(data)
    shutil.copystat(src_file, dst_file)
function_tokens: def copyFileWithDefs ( src_file , dst_file , defs ) : data = open ( src_file , 'r' ) . read ( ) for key , val in defs . iteritems ( ) : try : data = data . replace ( '@@' + key + '@@' , val ) except TypeError : print repr ( key ) , repr ( val ) open ( dst_file , 'w' ) . write ( data ) shutil . copystat ( src_file , dst_file )