mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-11-05 07:47:25 +00:00
[PR #1578] [MERGED] restart action: support running as Python module #1961
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/ComfyUI-Manager#1961
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/ComfyUI-Manager/pull/1578
Author: @bigcat88
Created: 2/25/2025
Status: ✅ Merged
Merged: 2/25/2025
Merged by: @ltdrdata
Base:
main← Head:restart-action/support-py-module📝 Commits (1)
ee47f25restart action: support running as Python module📊 Changes
1 file changed (+3 additions, -0 deletions)
View changed files
📝
glob/manager_server.py(+3 -0)📄 Description
This little PR simply adds a check if the main python executable file has the name
__main__.py- then the restart is performed viapython -m MODULE_NAME ..., and not directly via the full path to "main.py", which leads to arelative importserror, since python modules always do relative imports within themselves.This will allow us to use ComfyUI-Manager in future versions of Visionatrix, our project is launched by the line:
python -m visionatrixWith these changes, the restart works successfully, and these changes are not tied specifically to our project, but are universal, and may be useful to someone else in the future.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.