Spaces:
Running
on
Zero
Running
on
Zero
File size: 776 Bytes
1c237e7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
import shutil
import folder_paths
import os, sys, subprocess
import filecmp
print("### Loading: Save as Jpeg")
comfy_path = os.path.dirname(folder_paths.__file__)
def setup_js():
jpeg_path = os.path.dirname(__file__)
js_dest_path = os.path.join(comfy_path, "web", "extensions", "jpeginfo")
js_src_path = os.path.join(jpeg_path, "jpeginfo", "jpeginfo.js")
## Creating folder if it's not present, then Copy.
print("Copying JS files for Workflow loading")
if (os.path.isdir(js_dest_path)==False):
os.mkdir(js_dest_path)
shutil.copy(js_src_path, js_dest_path)
else:
shutil.copy(js_src_path, js_dest_path)
setup_js()
from .Save_as_jpeg import NODE_CLASS_MAPPINGS
__all__ = ['NODE_CLASS_MAPPINGS'] |