KohyaSS/dreambooth_gui/common_gui.py
2022-12-16 20:26:26 -05:00

23 lines
454 B
Python

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