File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 31
31
import traceback
32
32
import re
33
33
import keyword
34
+ import uuid
34
35
35
36
from .dependency_checker import resolve_dependencies , inspect_repo_version
36
37
from folder_paths import base_path as BASE_PATH
@@ -205,4 +206,13 @@ async def shellagent_export(request):
205
206
"comfyui_version" : comfyui_version ,
206
207
"comfyui_shellagent_plugin_version" : comfyui_shellagent_plugin_version ,
207
208
}
209
+ return web .json_response (return_dict , status = 200 )
210
+
211
+
212
+ @server .PromptServer .instance .routes .post ("/shellagent/get_mac_addr" ) # data same as queue prompt, plus workflow_name
213
+ async def shellagent_export (request ):
214
+ data = await request .json ()
215
+ return_dict = {
216
+ "mac_addr" : uuid .getnode ()
217
+ }
208
218
return web .json_response (return_dict , status = 200 )
You can’t perform that action at this time.
0 commit comments