parameters: (self, source, dest, convert_to_binary)
docstring: Copies a resource file to the bundle/Resources directory, performing any
      necessary compilation on each resource.
docstring_summary: Copies a resource file to the bundle/Resources directory, performing any
      necessary compilation on each resource.
docstring_tokens: Copies a resource file to the bundle / Resources directory performing any necessary compilation on each resource .
function: def ExecCopyBundleResource(self, source, dest, convert_to_binary):
      """Copies a resource file to the bundle/Resources directory, performing any
      necessary compilation on each resource."""
      extension = os.path.splitext(source)[1].lower()
      if os.path.isdir(source):
        # Copy tree.
        # TODO(thakis): This copies file attributes like mtime, while the
        # single-file branch below doesn't. This should probably be changed to
        # be consistent with the single-file branch.
        if os.path.exists(dest):
          shutil.rmtree(dest)
        shutil.copytree(source, dest)
      elif extension == '.xib':
        return self._CopyXIBFile(source, dest)
      elif extension == '.storyboard':
        return self._CopyXIBFile(source, dest)
      elif extension == '.strings':
        self._CopyStringsFile(source, dest, convert_to_binary)
      else:
        shutil.copy(source, dest)
function_tokens: def ExecCopyBundleResource ( self , source , dest , convert_to_binary ) : extension = os . path . splitext ( source ) [ 1 ] . lower ( ) if os . path . isdir ( source ) : # Copy tree. # TODO(thakis): This copies file attributes like mtime, while the # single-file branch below doesn't. This should probably be changed to # be consistent with the single-file branch. if os . path . exists ( dest ) : shutil . rmtree ( dest ) shutil . copytree ( source , dest ) elif extension == '.xib' : return self . _CopyXIBFile ( source , dest ) elif extension == '.storyboard' : return self . _CopyXIBFile ( source , dest ) elif extension == '.strings' : self . _CopyStringsFile ( source , dest , convert_to_binary ) else : shutil . copy ( source , dest )