updated
This commit is contained in:
@@ -1 +1,5 @@
|
|||||||
## select_folder_path_easy
|
## select_folder_path_easy
|
||||||
|
|
||||||
|
# Easier specification of output folder
|
||||||
|
|
||||||
|

|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 51 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 70 KiB |
+2
-10
@@ -3,16 +3,8 @@ import json
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
class SelectFolderPathEasy6321:
|
class SelectFolderPathEasy6321:
|
||||||
day_format = None
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
# 現在のスクリプトが存在するディレクトリのパス
|
pass
|
||||||
current_directory = os.path.dirname(os.path.realpath(__file__))
|
|
||||||
|
|
||||||
# ひとつ上のディレクトリのパスを取得
|
|
||||||
parent_directory = os.path.abspath(os.path.join(current_directory, os.pardir))
|
|
||||||
with open(os.path.join(parent_directory, 'setting.json'),"r") as f:
|
|
||||||
json_dict = json.load(f)
|
|
||||||
self.day_format = json_dict["day_format"]
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def INPUT_TYPES(self):
|
def INPUT_TYPES(self):
|
||||||
@@ -28,7 +20,7 @@ class SelectFolderPathEasy6321:
|
|||||||
}),
|
}),
|
||||||
"time_format":("STRING",{
|
"time_format":("STRING",{
|
||||||
"multiline": False, #True if you want the field to look like the one on the ClipTextEncode node
|
"multiline": False, #True if you want the field to look like the one on the ClipTextEncode node
|
||||||
"default": self.day_format
|
"default": r"%Y-%m-%d"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"day_format":"%Y-%m-%d"
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user