Skip to content

Commit

Permalink
Add requiremets.txt
Browse files Browse the repository at this point in the history
Signed-off-by: Santiago <santiaupi@gmail.com>
  • Loading branch information
Santti4go committed Aug 25, 2023
1 parent b6c0f47 commit 95ed4ed
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
8 changes: 4 additions & 4 deletions autoAccept.py → lobby_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pillow
tk
pyautogui
20 changes: 20 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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
)

0 comments on commit 95ed4ed

Please sign in to comment.