Question: Can a script decorated with gooey be invoked without gooey?
Zenahr opened this issue · comments
We have linux users who'd like to invoke a script as is (CLI) and we got Windows users who'd like to use the GUI that comes with the gooey decorator.
Is there an option/a way to make the script run as GUI if no arguments are passed and run as CLI if arguments are passed?
Solved.
from app import main
from gooey import Gooey
# Decorator providing the GUI functionality
@Gooey()
def gui_main():
main()
if __name__== "__main__" :
gui_main()