From d1f69ec22248483f1e228ad5b3ac3fecdd20435d Mon Sep 17 00:00:00 2001 From: thecooltechguy Date: Thu, 25 Jan 2024 00:37:20 -0800 Subject: [PATCH] wip --- __init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index d4df2ad..4b44415 100755 --- a/__init__.py +++ b/__init__.py @@ -13,6 +13,7 @@ from tqdm.asyncio import tqdm import folder_paths import server +import os NODE_CLASS_MAPPINGS = {} NODE_DISPLAY_NAME_MAPPINGS = {} @@ -23,12 +24,11 @@ __all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"] comfy_path = os.path.dirname(folder_paths.__file__) custom_nodes_path = os.path.join(comfy_path, 'custom_nodes') -CW_ENDPOINT = "http://localhost:3000" #"https://comfyworkflows.com" #"http://localhost:3000" +CW_ENDPOINT = os.environ.get("CW_ENDPOINT", "https://comfyworkflows.com") import re import unicodedata - def slugify(value, allow_unicode=False): """ Taken from https://github.com/django/django/blob/master/django/utils/text.py