From f093e90c2363f2d7925402c645dbb2d8bb4fd0f8 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Thu, 7 Apr 2022 10:19:18 +0200 Subject: [PATCH] ModuleUpdate: add it to a few more common entry points MinecraftClient: add requests import to requirements.txt --- CommonClient.py | 3 +++ FactorioClient.py | 3 +++ LttPAdjuster.py | 3 +++ MinecraftClient.py | 3 ++- Patch.py | 3 +++ SNIClient.py | 3 +++ worlds/minecraft/requirements.txt | 1 + 7 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 worlds/minecraft/requirements.txt diff --git a/CommonClient.py b/CommonClient.py index 25f314f7..cc92e3f5 100644 --- a/CommonClient.py +++ b/CommonClient.py @@ -6,6 +6,9 @@ import sys import typing import time +import ModuleUpdate +ModuleUpdate.update() + import websockets import Utils diff --git a/FactorioClient.py b/FactorioClient.py index cd46bb3a..94c6844a 100644 --- a/FactorioClient.py +++ b/FactorioClient.py @@ -9,6 +9,9 @@ import sys import time import random +import ModuleUpdate +ModuleUpdate.update() + import factorio_rcon import colorama import asyncio diff --git a/LttPAdjuster.py b/LttPAdjuster.py index b6f5c7ae..8835fdc2 100644 --- a/LttPAdjuster.py +++ b/LttPAdjuster.py @@ -20,6 +20,9 @@ from tkinter.constants import DISABLED, NORMAL from urllib.parse import urlparse from urllib.request import urlopen +import ModuleUpdate +ModuleUpdate.update() + from worlds.alttp.Rom import Sprite, LocalRom, apply_rom_settings, get_base_rom_bytes from Utils import output_path, local_path, user_path, open_file, get_cert_none_ssl_context, persistent_store, \ get_adjuster_settings, tkinter_center_window, init_logging diff --git a/MinecraftClient.py b/MinecraftClient.py index 4548a099..5c0fc535 100644 --- a/MinecraftClient.py +++ b/MinecraftClient.py @@ -1,5 +1,6 @@ import argparse -import os, sys +import os +import sys import re import atexit import shutil diff --git a/Patch.py b/Patch.py index da7da26a..bc2b98ec 100644 --- a/Patch.py +++ b/Patch.py @@ -12,6 +12,9 @@ import zipfile import sys from typing import Tuple, Optional, Dict, Any, Union, BinaryIO +import ModuleUpdate +ModuleUpdate.update() + import Utils current_patch_version = 4 diff --git a/SNIClient.py b/SNIClient.py index e358cfba..9ba98717 100644 --- a/SNIClient.py +++ b/SNIClient.py @@ -12,6 +12,9 @@ import logging import asyncio from json import loads, dumps +import ModuleUpdate +ModuleUpdate.update() + from Utils import init_logging if __name__ == "__main__": diff --git a/worlds/minecraft/requirements.txt b/worlds/minecraft/requirements.txt new file mode 100644 index 00000000..a5590930 --- /dev/null +++ b/worlds/minecraft/requirements.txt @@ -0,0 +1 @@ +requests >= 2.27.1 # used by client \ No newline at end of file