fix path to ui.js

This commit is contained in:
AlekPet
2024-07-29 13:29:20 +03:00
parent f24376a2d0
commit 17d23aca85
3 changed files with 16 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import { app } from "../../scripts/app.js";
import { api } from "../../scripts/api.js";
import { ComfyWidgets } from "../../scripts/widgets.js";
import { $el } from "../../../scripts/ui.js";
import { $el } from "../../scripts/ui.js";
import { isValidStyle, rgbToHex } from "./utils.js";
function makeColorWidget(node, inputName, inputData, widget) {
+1 -1
View File
@@ -7,7 +7,7 @@
*/
import { app } from "../../scripts/app.js";
import { $el } from "../../../scripts/ui.js";
import { $el } from "../../scripts/ui.js";
import { addStylesheet } from "../../scripts/utils.js";
import { fabric } from "./lib/posenode/fabric.js";
+14 -1
View File
@@ -40,6 +40,19 @@ module_name_cut_version = re.compile("[>=<]")
installed_modules = {}
# installed_modules = {m[1] for m in pkgutil.iter_modules()}
def get_version_extension():
version = ''
toml_file = os.path.join(extension_folder, 'pyproject.toml')
if(os.path.isfile(toml_file)):
try:
with open(toml_file, "r") as v:
version = list(filter(lambda l: l.startswith("version"),v.readlines()))[0]
version = version.split("=")[1].replace("\"","").strip()
return f" \033[1;34mv{version}\033[0m\033[1;35m"
except Exception as e:
print(e)
return version
def log(*text):
if DEBUG:
@@ -213,7 +226,7 @@ def install_node(nodeElement):
def installNodes():
global installed_modules
log(f"\n-------> AlekPet Node Installing [DEBUG] <-------")
printColorInfo(f"### [START] ComfyUI AlekPet Nodes ###", "\033[1;35m")
printColorInfo(f"### [START] ComfyUI AlekPet Nodes{get_version_extension()} ###", "\033[1;35m")
# Remove files in lib directory
libfiles = ["fabric.js"]