KohyaSS/dreambooth_gui/common_gui.py

19 lines
492 B
Python
Raw Normal View History

2022-12-16 18:16:23 +00:00
from easygui import diropenbox, fileopenbox
def get_folder_path():
folder_path = diropenbox("Select the directory to use")
return folder_path
def remove_doublequote(file_path):
if file_path != None:
file_path = file_path.replace('"', "")
return file_path
def get_file_path(file_path):
file_path = fileopenbox("Select the config file to load",
default=file_path,
filetypes="*.json")
return file_path