diff --git a/labelImg.py b/labelImg.py index 915ca04b..cc9edd9c 100755 --- a/labelImg.py +++ b/labelImg.py @@ -1600,11 +1600,13 @@ def read(filename, default=None): return default -def get_main_app(argv=[]): +def get_main_app(argv=None): """ Standard boilerplate Qt application code. Do everything but app.exec_() -- so that we can test the application in one thread """ + if not argv: + argv = [] app = QApplication(argv) app.setApplicationName(__appname__) app.setWindowIcon(new_icon("app"))