#!/usr/bin/env python3 from subprocess import run import os.path print("\033[0;33;48m Welcome to UI converter.") ui = input("\033[0;37;48m UI File:") output = input("Output File:") if (os.path.exists(ui)): run(["pyuic5","-x", ui,"-o",output]) print("File has been created and is currently located at \n \033[1;32;48m", output) else: print("\033[1;31;48m No such UI File...")