(self, resource_rules)
return target_path
Installs ResourceRules.plist from user or SDK into the bundle.

    Args:
      resource_rules: string, optional, path to the ResourceRules.plist file
        to use, default to "${SDKROOT}/ResourceRules.plist"

    Returns:
      Path to the copy of ResourceRules.plist into the bundle.
Installs ResourceRules.plist from user or SDK into the bundle.
Installs ResourceRules . plist from user or SDK into the bundle .
def _InstallResourceRules(self, resource_rules):
    """Installs ResourceRules.plist from user or SDK into the bundle.

    Args:
      resource_rules: string, optional, path to the ResourceRules.plist file
        to use, default to "${SDKROOT}/ResourceRules.plist"

    Returns:
      Path to the copy of ResourceRules.plist into the bundle.
    """
    source_path = resource_rules
    target_path = os.path.join(
        os.environ['BUILT_PRODUCTS_DIR'],
        os.environ['CONTENTS_FOLDER_PATH'],
        'ResourceRules.plist')
    if not source_path:
      source_path = os.path.join(
          os.environ['SDKROOT'], 'ResourceRules.plist')
    shutil.copy2(source_path, target_path)
    return target_path
def _InstallResourceRules ( self , resource_rules ) : source_path = resource_rules target_path = os . path . join ( os . environ [ 'BUILT_PRODUCTS_DIR' ] , os . environ [ 'CONTENTS_FOLDER_PATH' ] , 'ResourceRules.plist' ) if not source_path : source_path = os . path . join ( os . environ [ 'SDKROOT' ] , 'ResourceRules.plist' ) shutil . copy2 ( source_path , target_path ) return target_path