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.

This commit is contained in:
The Wobbler 2025-01-25 20:44:30 +01:00
parent 3e2d482415
commit a7fc19f98b

View file

@ -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: