import os import sys from tkinter import * from src.window.app import App def main(): if getattr(sys, 'frozen', False): os.chdir(sys._MEIPASS) root = Tk() root.title("Drawing Training!") root.geometry("300x600") App(root) root.mainloop() if __name__ == '__main__': main()