diff --git a/image_10.png b/image_10.png deleted file mode 100644 index 4483dc13..00000000 Binary files a/image_10.png and /dev/null differ diff --git a/image_11.png b/image_11.png deleted file mode 100644 index af6395d9..00000000 Binary files a/image_11.png and /dev/null differ diff --git a/image_12.png b/image_12.png deleted file mode 100644 index af6395d9..00000000 Binary files a/image_12.png and /dev/null differ diff --git a/unilabos/app/main.py b/unilabos/app/main.py index 7b2773db..ad32612d 100644 --- a/unilabos/app/main.py +++ b/unilabos/app/main.py @@ -302,6 +302,11 @@ def main(): graph, resource_tree_set, resource_links = read_node_link_json(request_startup_json) else: 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"): graph, resource_tree_set, resource_links = read_node_link_json(file_path) else: