From 95ed4ed38d610022335edf125b2924048bb94eee Mon Sep 17 00:00:00 2001 From: Santiago Date: Thu, 24 Aug 2023 22:24:22 -0300 Subject: [PATCH] Add requiremets.txt Signed-off-by: Santiago --- autoAccept.py => lobby_finder.py | 8 ++++---- requirements.txt | 3 +++ setup.py | 20 ++++++++++++++++++++ 3 files changed, 27 insertions(+), 4 deletions(-) rename autoAccept.py => lobby_finder.py (92%) create mode 100644 requirements.txt create mode 100644 setup.py diff --git a/autoAccept.py b/lobby_finder.py similarity index 92% rename from autoAccept.py rename to lobby_finder.py index 9efbad4..521afcd 100644 --- a/autoAccept.py +++ b/lobby_finder.py @@ -34,15 +34,15 @@ def getScreenshot(resolution, scale=1) -> Image: SEARCH_LOBBY = True def start_lobby(): - global SEARCH_LOBBY, thread_task + global SEARCH_LOBBY, THREAD_TASK SEARCH_LOBBY = True - thread_task = threading.Thread(target=accept_lobby) - thread_task.start() + THREAD_TASK = threading.Thread(target=accept_lobby) + THREAD_TASK.start() def stop_lobby_search(): global SEARCH_LOBBY SEARCH_LOBBY = False - thread_task.join() + THREAD_TASK.join() def accept_lobby(): global SEARCH_LOBBY diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..bb79bac --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +pillow +tk +pyautogui diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..441e000 --- /dev/null +++ b/setup.py @@ -0,0 +1,20 @@ +from cx_Freeze import setup, Executable + +base = None + +executables = [Executable("lobby_finder.py", base=base)] + +packages = ["threading", "time", "PIL", "tkinter", "pyautogui"] +options = { + 'build_exe': { + 'packages':packages, + }, +} + +setup( + name = "Lobby finder", + options = options, + version = "0.1.0", + description = 'League of Legends - Lobby finder', + executables = executables +)