From a7fc19f98b4bf34f00fdb5dc5c6f731782c6701e Mon Sep 17 00:00:00 2001 From: EKNr1 Date: Sat, 25 Jan 2025 20:44:30 +0100 Subject: [PATCH] Moved import into the main function so that when the program is executed with the wrong command line parameters, the pygame hello-message won't get printed. --- wobuzz/command_line.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wobuzz/command_line.py b/wobuzz/command_line.py index f9d42cb..f30bf31 100644 --- a/wobuzz/command_line.py +++ b/wobuzz/command_line.py @@ -2,7 +2,6 @@ import sys import argparse -from .main import Wobuzz def main(): @@ -15,6 +14,8 @@ def main(): arguments = parser.parse_args() + from .main import Wobuzz + app = Wobuzz() if arguments.playlist: