MCPcopy Create free account
hub / github.com/ComfyWorkflows/ComfyUI-Launcher / get_project

Function get_project

server/server.py:105–119  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

103
104@app.route("/api/projects/<id>", methods=["GET"])
105def get_project(id):
106 project_path = os.path.join(PROJECTS_DIR, id)
107 assert os.path.exists(project_path), f"Project with id {id} does not exist"
108 launcher_state, _ = get_launcher_state(project_path)
109 project_port = get_project_port(id)
110 return jsonify(
111 {
112 "id": id,
113 "state": launcher_state,
114 "project_folder_name": id,
115 "project_folder_path": project_path,
116 "last_modified": os.stat(project_path).st_mtime,
117 "port" : project_port
118 }
119 )
120
121
122@app.route("/api/get_config", methods=["GET"])

Callers

nothing calls this directly

Calls 2

get_launcher_stateFunction · 0.90
get_project_portFunction · 0.90

Tested by

no test coverage detected