Rename imports
This commit is contained in:
4
main.py
4
main.py
@@ -1,12 +1,12 @@
|
||||
from sampy.env import Environment
|
||||
from sampy.struct.server import Server
|
||||
from sampy.struct.server import ServerConfig
|
||||
|
||||
from sampy.shared.glob import config
|
||||
|
||||
environments = []
|
||||
|
||||
for server in config["demo"]["servers"]:
|
||||
server_config = Server(**server) # Initialize a new Server struct every time even if you are just changing the port (required due to reference and automation values)
|
||||
server_config = ServerConfig(**server) # Initialize a new Server struct every time even if you are just changing the port (required due to reference and automation values)
|
||||
env = Environment(server_config)
|
||||
environments.append(env)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user