def _get_localization_env(self, inputs, user_project):
<EOL>non_empty_inputs = [var for var in inputs if var.value]<EOL>env = {'<STR_LIT>': str(len(non_empty_inputs))}<EOL>for idx, var in enumerate(non_empty_inputs):<EOL><INDENT>env['<STR_LIT>'.format(idx)] = var.name<EOL>env['<STR_LIT>'.format(idx)] = str(int(var.recursive))<EOL>env['<STR_LIT>'.format(idx)] = var.value<EOL>dst = os.path.join(providers_util.DATA_MOUNT_POINT, var.docker_path)<EOL>path, filename = os.path.split(dst)<EOL>if '<STR_LIT:*>' in filename:<EOL><INDENT>dst = '<STR_LIT>'.format(path)<EOL><DEDENT>env['<STR_LIT>'.format(idx)] = dst<EOL><DEDENT>env['<STR_LIT>'] = user_project<EOL>return env<EOL>
Return a dict with variables for the 'localization' action.