move the startpoint into its own function

This commit is contained in:
Andreas Zweili 2019-05-31 10:41:17 +02:00
parent c5929905f5
commit a5b6871b4c
1 changed files with 4 additions and 2 deletions

View File

@ -6,8 +6,7 @@ from PyQt5.QtWidgets import QApplication
from borg_qt.main_window import MainWindow
from borg_qt.helper import get_parser
if __name__ == "__main__":
def main():
app = QApplication(sys.argv)
window = MainWindow()
parser = get_parser()
@ -21,3 +20,6 @@ if __name__ == "__main__":
window.start()
sys.exit(app.exec_())
if __name__ == "__main__":
main()