Lines Matching full:os
2 import os
14 SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
16 proxies = {"https": os.environ.get("https_proxy", None)}
27 redfish_core_path = os.path.join(SCRIPT_DIR, "..", "redfish-core")
29 cpp_path = os.path.realpath(os.path.join(redfish_core_path, "include"))
31 schema_path = os.path.join(redfish_core_path, "schema", "dmtf", "csdl")
32 json_schema_path = os.path.join(
37 schema_installed_path = os.path.join(schema_path, "..", "installed")
71 os.makedirs(schema_path)
74 os.makedirs(json_schema_path)
83 csdl_filenames.append(os.path.basename(zip_file.filename))
85 filename = os.path.basename(zip_file.filename)
104 for csdl_symlink in os.listdir(schema_installed_path):
108 os.makedirs(schema_installed_path)
112 with open(os.path.join(schema_path, csdl_file), "wb") as schema_out:
113 content = zip_ref.read(os.path.join(VERSION + "/csdl", csdl_file))
118 os.symlink(
119 os.path.join("..", "csdl", csdl_file),
120 os.path.join(schema_installed_path, csdl_file),
125 for json_symlink in os.listdir(json_schema_installed_path):
130 os.makedirs(json_schema_installed_path)
134 zip_filepath = os.path.join(VERSION + "/json-schema", versions[0])
137 os.path.join(json_schema_path, versions[0]), "wb"
144 os.symlink(
145 os.path.join("..", "json-schema", versions[0]),
146 os.path.join(json_schema_installed_path, versions[0]),