mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2025-12-17 13:01:12 +00:00
Support internal test examples
This commit is contained in:
BIN
image_10.png
BIN
image_10.png
Binary file not shown.
|
Before Width: | Height: | Size: 46 KiB |
BIN
image_11.png
BIN
image_11.png
Binary file not shown.
|
Before Width: | Height: | Size: 24 KiB |
BIN
image_12.png
BIN
image_12.png
Binary file not shown.
|
Before Width: | Height: | Size: 24 KiB |
@@ -302,6 +302,11 @@ def main():
|
|||||||
graph, resource_tree_set, resource_links = read_node_link_json(request_startup_json)
|
graph, resource_tree_set, resource_links = read_node_link_json(request_startup_json)
|
||||||
else:
|
else:
|
||||||
file_path = args_dict["graph"]
|
file_path = args_dict["graph"]
|
||||||
|
if not os.path.isfile(file_path):
|
||||||
|
temp_file_path = os.path.abspath(str(os.path.join(__file__, "..", "..", file_path)))
|
||||||
|
if os.path.isfile(temp_file_path):
|
||||||
|
print_status(f"使用相对路径{temp_file_path}", "info")
|
||||||
|
file_path = temp_file_path
|
||||||
if file_path.endswith(".json"):
|
if file_path.endswith(".json"):
|
||||||
graph, resource_tree_set, resource_links = read_node_link_json(file_path)
|
graph, resource_tree_set, resource_links = read_node_link_json(file_path)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user