2022-12-16 13:16:23 -05:00
|
|
|
from easygui import diropenbox, fileopenbox
|
|
|
|
|
2022-12-16 20:26:26 -05:00
|
|
|
|
2022-12-16 13:16:23 -05:00
|
|
|
def get_folder_path():
|
2022-12-16 20:26:26 -05:00
|
|
|
folder_path = diropenbox('Select the directory to use')
|
2022-12-16 13:16:23 -05:00
|
|
|
|
|
|
|
return folder_path
|
|
|
|
|
2022-12-16 20:26:26 -05:00
|
|
|
|
2022-12-17 09:51:30 -05:00
|
|
|
def get_file_path(file_path):
|
|
|
|
file_path = fileopenbox(
|
|
|
|
'Select the config file to load', default=file_path, filetypes='*.json',
|
|
|
|
)
|
2022-12-16 13:16:23 -05:00
|
|
|
|
|
|
|
return file_path
|
|
|
|
|
2022-12-16 20:26:26 -05:00
|
|
|
|
2022-12-17 09:51:30 -05:00
|
|
|
def remove_doublequote(file_path):
|
|
|
|
if file_path != None:
|
|
|
|
file_path = file_path.replace('"', '')
|
2022-12-16 13:16:23 -05:00
|
|
|
|
2022-12-16 20:26:26 -05:00
|
|
|
return file_path
|