-
Notifications
You must be signed in to change notification settings - Fork 1
Separated user home folder virtual env #10
base: enhancement/implement-ihostaddon
Are you sure you want to change the base?
Separated user home folder virtual env #10
Conversation
- Added project name to launch arguments. - Enhanced virtual environment path handling based on project name. - Updated activation script for the virtual environment. - Ensured PyYAML is installed during setup.
Write-Output "Running ComfyUI with CPU" | ||
uv run .\main.py --cpu | ||
python .\main.py --cpu | ||
} else { | ||
uv run .\main.py | ||
python .\main.py | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about this to be honest. I believe since the virtual env is activated this is starting python from the venv - so possibility it doesn't need to run it via uv, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
afaik uv run
makes sure to that the python in the venv gets used.
since i'm activating the venv before doing anything else this should be totally fine.
tbh, i don't believe this is actually changing the behaviour
i'm changing the target branch as this is adressing a sub-issue of the larger "ComfyUI as AYON Application" issue which shall be closed by #12 |
…-home-folder-virtual-env
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't think we need the project_name
argument for the launch script.
i'm already launching the new shell session in the directory that was built using the configured folder templates here:
"cwd": self.comfy_root, |
this already includes the project name so i believe this would be redundant.
okay so checking this out more i get a feeling that this is implementing behaviour that was already present just with more code. the directory in which the launch script gets called is already built based on the the entire launch script operates in this folder context and therefore also uv. so a simple let's discuss :) |
…-home-folder-virtual-env
lemme share my approach. this causes comfy to always be installed at e.g. |
closes #9