Adjusted for ui 0.0.1 not needing path of config.

This commit is contained in:
Mr Finchum 2025-01-02 23:06:55 +01:00
parent 9f0aece4bf
commit 06dda64e73

13
main.py
View file

@ -11,11 +11,11 @@ def check_pyside_installed():
def start_gui():
import gui
gui.main(exif_file)
gui.main()
def start_tui():
import tui
tui.main(exif_file, tui_settings_file)
tui.main()
def main():
parser = ArgumentParser(description="Start the Optima35 application.")
@ -41,13 +41,4 @@ def main():
start_tui()
if __name__ == "__main__":
if os.path.isfile("config/exif.yaml"):
exif_file = "config/exif.yaml"
elif os.path.isfile("config/exif_example.yaml"):
exif_file = "config/exif_example.yaml"
print("Fall back to exif example file...")
else:
print("Exif file missing, please ensure an exif file exist in config folder (exif.yaml, or exif_example_yaml)\nExiting...")
exit()
tui_settings_file = "config/tui_settings.yaml"
main()