import platform
from app import App
from pathlib import Path
from readchar import readchar


def main():
    """Creates an application object and launches it."""

    # Specify which files will be used to load the application's settings and the queue of files to process afterward.
    settings = Path("settings.json")
    queue = Path("queue.json")

    # Creating an object of the application and running it with provided settings and queue file paths.
    App(settings, queue).run()

    # Adds a pop-up message for user to confirm exit from this application (when launched in a new window on Windows).
    # if platform.system() == "Windows":
    #     print("Execution has been completed. Press any key to exit...")
    #     readchar()


# This script's entry point, if it was executed directly.
if __name__ == '__main__':
    main()
