create .env file if its not exists

This commit is contained in:
2024-04-14 13:36:59 +02:00
parent f472ddd0d9
commit 0af6d862d4
2 changed files with 28 additions and 2 deletions
+2 -2
View File
@@ -12,14 +12,14 @@
# To get you started we've included code to prevent your Battlesnake from moving backwards.
# For more info see docs.battlesnake.com
from server.CreateEnvironmentFile import CreateEnvironmentFile
from server.Server import Server
from dotenv import load_dotenv, find_dotenv
import os
# Start server when `python main.py` is run
if __name__ == "__main__":
load_dotenv(find_dotenv())
CreateEnvironmentFile.load_dotenv({"STORE_GAME_HISTORY": True, "DEBUG": True, "SNAKE": "DummSnake"})
server = Server(
data_path=os.path.dirname(__file__),