diff --git a/README.md b/README.md index 0c85cdc..e217a8c 100644 --- a/README.md +++ b/README.md @@ -1 +1,5 @@ ## select_folder_path_easy + +# Easier specification of output folder + +![image01](/images/image01.png) \ No newline at end of file diff --git a/images/image01.png b/images/image01.png new file mode 100644 index 0000000..f769f45 Binary files /dev/null and b/images/image01.png differ diff --git a/images/image02.png b/images/image02.png new file mode 100644 index 0000000..17ab84f Binary files /dev/null and b/images/image02.png differ diff --git a/modules/get_path.py b/modules/get_path.py index 44c6752..1767c84 100644 --- a/modules/get_path.py +++ b/modules/get_path.py @@ -3,16 +3,8 @@ import json import os class SelectFolderPathEasy6321: - day_format = None def __init__(self): - # 現在のスクリプトが存在するディレクトリのパス - 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"] + pass @classmethod def INPUT_TYPES(self): @@ -28,7 +20,7 @@ class SelectFolderPathEasy6321: }), "time_format":("STRING",{ "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" }) } } diff --git a/setting.json b/setting.json deleted file mode 100644 index 0b86fc0..0000000 --- a/setting.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "day_format":"%Y-%m-%d" -} \ No newline at end of file