create env variable that allow to create a .env file if neaded

This commit is contained in:
2024-04-17 20:09:57 +02:00
parent 4620ee31eb
commit 9950fa1952
+1
View File
@@ -19,6 +19,7 @@ import os
# Start server when `python main.py` is run
if __name__ == "__main__":
if os.environ.get("CREATE_ENV_FILE", None):
CreateEnvironmentFile.load_dotenv({"STORE_GAME_HISTORY": True, "DEBUG": True, "SNAKE": "DummSnake", "STORE_IF_WIN_AND_MOVES_ARE_BIGGER_AS": 10})
server = Server(