CommonClient.py: move in gui_enabled

This commit is contained in:
Fabian Dill
2021-08-20 22:31:17 +02:00
parent 72610d8c2f
commit 6dc2000638
3 changed files with 8 additions and 10 deletions

View File

@@ -3,6 +3,7 @@ import logging
import typing
import asyncio
import urllib.parse
import sys
import websockets
@@ -14,6 +15,7 @@ from worlds import network_data_package, AutoWorldRegister
logger = logging.getLogger("Client")
gui_enabled = Utils.is_frozen() or "--nogui" not in sys.argv
class ClientCommandProcessor(CommandProcessor):
def __init__(self, ctx: CommonContext):