vinavfx / ComfyUI-for-Nuke

API to be able to use ComfyUI nodes within nuke, only using the ComfyUI server
GNU General Public License v3.0
193 stars 17 forks source link

Variables from env #36

Open Ophtis opened 1 day ago

Ophtis commented 1 day ago

Hi Francisco,

It seems the config from environment variables we used to have is missing, due to the removal of file settings.py I guess ? https://github.com/vinavfx/ComfyUI-for-Nuke/pull/9

It would be perfect to retreive all these env variables : (including NUKE_USER, maybe with another name, since we deploy additional plugins outside the nuke's profile).

COMFYUI_DIR = os.getenv("COMFYUI_DIR", '<path_to_ComfyUI>')
IP = os.getenv("NUKE_COMFYUI_IP", '127.0.0.1')
PORT = int(os.getenv("NUKE_COMFYUI_PORT", "8188"))
NUKE_USER = os.getenv("NUKE_COMFYUI_PATH", get_nuke_path())  # /home/<USER>/.nuke

Thanks.