Lines Matching +full:sub +full:- +full:path
8 SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
9 REDFISH_SCHEMA_DIR = os.path.realpath(
10 os.path.join(SCRIPT_DIR, "..", "redfish-core", "schema")
13 OUTFOLDER = os.path.realpath(
14 os.path.join(
15 SCRIPT_DIR, "..", "redfish-core", "include", "generated", "enums"
20 EDMX = "{http://docs.oasis-open.org/odata/ns/edmx}"
21 EDM = "{http://docs.oasis-open.org/odata/ns/edm}"
75 name = re.sub("(.)([A-Z][a-z]+)", r"\1_\2", name)
76 return re.sub("([a-z0-9])([A-Z])", r"\1_\2", name).lower()
81 "// SPDX-License-Identifier: Apache-2.0\n"
82 "// SPDX-FileCopyrightText: Copyright OpenBMC Authors\n"
87 "// clang-format off\n\n".format(snake_case_namespace)
101 enum_value = re.sub(r"[^0-9_a-zA-Z]", "", value)
111 # implementation, and clang-tidy isn't smart enough to figure out that
122 enum_value = re.sub(r"[^0-9_a-zA-Z]", "", value)
133 redfish_defs_file.write("}\n// clang-format on\n")
138 if os.path.exists(OUTFOLDER):
151 outfile = os.path.join(
165 filepath = os.path.join(root, csdl_file)
166 if os.path.islink(filepath):