Skip to content

Commit

Permalink
ModuleUpdate: add it to a few more common entry points
Browse files Browse the repository at this point in the history
MinecraftClient: add requests import to requirements.txt
  • Loading branch information
Berserker66 committed Apr 7, 2022
1 parent 3d1f6d9 commit f093e90
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CommonClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
import typing
import time

import ModuleUpdate
ModuleUpdate.update()

import websockets

import Utils
Expand Down
3 changes: 3 additions & 0 deletions FactorioClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
import time
import random

import ModuleUpdate
ModuleUpdate.update()

import factorio_rcon
import colorama
import asyncio
Expand Down
3 changes: 3 additions & 0 deletions LttPAdjuster.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
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
Expand Down
3 changes: 2 additions & 1 deletion MinecraftClient.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import argparse
import os, sys
import os
import sys
import re
import atexit
import shutil
Expand Down
3 changes: 3 additions & 0 deletions Patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
import sys
from typing import Tuple, Optional, Dict, Any, Union, BinaryIO

import ModuleUpdate
ModuleUpdate.update()

import Utils

current_patch_version = 4
Expand Down
3 changes: 3 additions & 0 deletions SNIClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
import asyncio
from json import loads, dumps

import ModuleUpdate
ModuleUpdate.update()

from Utils import init_logging

if __name__ == "__main__":
Expand Down
1 change: 1 addition & 0 deletions worlds/minecraft/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
requests >= 2.27.1 # used by client

0 comments on commit f093e90

Please sign in to comment.