def METHOD_NAME():  # pragma: no cover
    if not os.path.exists('ls.py'):
        with open('ls.py', 'w') as pyfile:
            pyfile.write('import os\n')
            pyfile.write('import sys\n')
            pyfile.write('import time\n')
            pyfile.write("files = os.listdir('.')\n")
            pyfile.write('for filename in files:\n')
            pyfile.write('    print(filename)\n')
            pyfile.write('    sys.stdout.flush()\n')
            pyfile.write('    time.sleep(0.3)\n')
            pyfile.write("print('************')\n")
    # kills the program when you hit Cntl+C from the command line
    # doesn't save the current state as presumably there's been an error
    import signal
    signal.signal(signal.SIGINT, signal.SIG_DFL)
    import sys
    app = QApplication(sys.argv)
    unused_gui = JobRunner()
    app.exec_()
    #sys.exit()