Adjusted for ui 0.0.1 not needing path of config.
This commit is contained in:
parent
9f0aece4bf
commit
06dda64e73
1 changed files with 2 additions and 11 deletions
13
main.py
13
main.py
|
@ -11,11 +11,11 @@ def check_pyside_installed():
|
||||||
|
|
||||||
def start_gui():
|
def start_gui():
|
||||||
import gui
|
import gui
|
||||||
gui.main(exif_file)
|
gui.main()
|
||||||
|
|
||||||
def start_tui():
|
def start_tui():
|
||||||
import tui
|
import tui
|
||||||
tui.main(exif_file, tui_settings_file)
|
tui.main()
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = ArgumentParser(description="Start the Optima35 application.")
|
parser = ArgumentParser(description="Start the Optima35 application.")
|
||||||
|
@ -41,13 +41,4 @@ def main():
|
||||||
start_tui()
|
start_tui()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
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()
|
main()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue