def _write_config_file(template_file):
        """
        Write a config file to the source bundle location to identify the entry point.
        :param template_file: path to the task template subclass (executable)
        """
        config_filename = '.cloud_harness_config.json'
        config_path = os.path.dirname(template_file)

        filename = os.path.split(template_file)[1]

        if filename.endswith('.pyc'):
            filename = filename[:-1]

        config_file = os.path.join(config_path, config_filename)

        with open(config_file, 'w') as f:
            f.write(json.dumps({'task_filename': filename}))

        return config_file
def _write_config_file(template_file):
        """
        Write a config file to the source bundle location to identify the entry point.
        :param template_file: path to the task template subclass (executable)
        """
        config_filename = '.cloud_harness_config.json'
        config_path = os.path.dirname(template_file)

        filename = os.path.split(template_file)[1]

        if filename.endswith('.pyc'):
            filename = filename[:-1]

        config_file = os.path.join(config_path, config_filename)

        with open(config_file, 'w') as f:
            f.write(json.dumps({'task_filename': filename}))

        return config_file
def _write_config_file ( template_file ) : config_filename = '.cloud_harness_config.json' config_path = os . path . dirname ( template_file ) filename = os . path . split ( template_file ) [ 1 ] if filename . endswith ( '.pyc' ) : filename = filename [ : - 1 ] config_file = os . path . join ( config_path , config_filename ) with open ( config_file , 'w' ) as f : f . write ( json . dumps ( { 'task_filename' : filename } ) ) return config_file
Write a config file to the source bundle location to identify the entry point.
        :param template_file: path to the task template subclass (executable)
Write a config file to the source bundle location to identify the entry point . : param template_file : path to the task template subclass ( executable )