forked from Wobbl/Wobuzz
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:
parent
3e2d482415
commit
a7fc19f98b
1 changed files with 2 additions and 1 deletions
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import argparse
|
import argparse
|
||||||
from .main import Wobuzz
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
@ -15,6 +14,8 @@ def main():
|
||||||
|
|
||||||
arguments = parser.parse_args()
|
arguments = parser.parse_args()
|
||||||
|
|
||||||
|
from .main import Wobuzz
|
||||||
|
|
||||||
app = Wobuzz()
|
app = Wobuzz()
|
||||||
|
|
||||||
if arguments.playlist:
|
if arguments.playlist:
|
||||||
|
|
Loading…
Add table
Reference in a new issue