conson clean
This commit is contained in:
+2
-2
@@ -12,8 +12,8 @@ if __name__ == os.path.splitext(os.path.basename(__file__))[0] :
|
||||
else:
|
||||
from .ConsoleColor import print, console
|
||||
from .mypath import *
|
||||
print(__file__)
|
||||
print(os.path.basename(__file__))
|
||||
#print(__file__)
|
||||
#print(os.path.basename(__file__))
|
||||
|
||||
|
||||
class SaveImageSimple:
|
||||
|
||||
+4
-4
@@ -21,16 +21,16 @@ from PIL import Image
|
||||
from PIL.PngImagePlugin import PngInfo
|
||||
import numpy as np
|
||||
|
||||
print(f"SimpleSampler __name__ {__name__}")
|
||||
print(f"SimpleSampler __file__ {os.path.splitext(os.path.basename(__file__))[0]}")
|
||||
#print(f"SimpleSampler __name__ {__name__}")
|
||||
#print(f"SimpleSampler __file__ {os.path.splitext(os.path.basename(__file__))[0]}")
|
||||
|
||||
import os
|
||||
if __name__ == os.path.splitext(os.path.basename(__file__))[0] :
|
||||
from ConsoleColor import print, console
|
||||
else:
|
||||
from .ConsoleColor import print, console
|
||||
print(__file__)
|
||||
print(os.path.basename(__file__))
|
||||
#print(__file__)
|
||||
#print(os.path.basename(__file__))
|
||||
|
||||
#----------------------------
|
||||
# wildcards support check
|
||||
|
||||
+6
-2
@@ -52,7 +52,9 @@ if not md.startswith("custom_nodes."):
|
||||
print(f"Load ok : {name}", style="bold green")
|
||||
except Exception:
|
||||
console.print_exception()
|
||||
|
||||
|
||||
console.rule(f" init start ", style="bold green")
|
||||
|
||||
add("CheckpointLoaderRandom")
|
||||
add("CheckpointLoaderSimpleText")
|
||||
add("CLIPTextEncodeWildcards")
|
||||
@@ -62,4 +64,6 @@ if not md.startswith("custom_nodes."):
|
||||
add("VAELoaderDecode")
|
||||
add("SimpleSampler")
|
||||
add("SaveImageSimple")
|
||||
#add("test")
|
||||
#add("test")
|
||||
|
||||
console.rule(" finit end ", style="bold green")
|
||||
@@ -26,28 +26,27 @@ print()
|
||||
"""
|
||||
|
||||
py_name=os.path.basename(__file__)
|
||||
print(py_name, style="bold CYAN")
|
||||
print("os.path.basename(__file__) : ",py_name, style="bold CYAN")
|
||||
|
||||
absFilePath = os.path.abspath(__file__)
|
||||
print("abspath : " + absFilePath , style="bold CYAN")
|
||||
print("os.path.abspath(__file__) : " , absFilePath , style="bold CYAN")
|
||||
|
||||
realFilePath = os.path.realpath(__file__)
|
||||
print("realpath : " + realFilePath , style="bold CYAN")
|
||||
print("os.path.abspath(__file__) : " + realFilePath , style="bold CYAN")
|
||||
|
||||
normpath=os.path.normpath(__file__)
|
||||
print("normpath : " + normpath , style="bold CYAN")
|
||||
print("os.path.normpath(__file__) : " + normpath , style="bold CYAN")
|
||||
|
||||
subfolder = os.path.dirname(normpath)
|
||||
print("subfolder : " + subfolder , style="bold CYAN")
|
||||
print("os.path.dirname(normpath) : " + subfolder , style="bold CYAN")
|
||||
|
||||
filename = os.path.basename(normpath)
|
||||
print("filename : " + filename , style="bold CYAN")
|
||||
|
||||
mainFile = os.path.abspath(sys.modules['__main__'].__file__)
|
||||
print("mainFile : " + mainFile ,style="bold CYAN")
|
||||
print("os.path.basename(normpath) : " + filename , style="bold CYAN")
|
||||
|
||||
mainFile = os.path.abspath(sys.modules['__main__'].__file__)
|
||||
print("os.path.abspath(sys.modules\['__main__'].__file__) : " + mainFile ,style="bold CYAN")
|
||||
mainfolder = os.path.dirname(mainFile)
|
||||
print("mainfolder : " + mainfolder , style="bold CYAN")
|
||||
print("os.path.dirname(mainFile) : " + mainfolder , style="bold CYAN")
|
||||
|
||||
def jsondic(full,dic):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user