-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathStartBot.py
More file actions
41 lines (32 loc) · 1.2 KB
/
StartBot.py
File metadata and controls
41 lines (32 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
from PyQt5.QtWidgets import QApplication
import pytesseract
import Addresses
import os
import sys
# Set Tesseract Path - Intelligent discovery for EXE bundling
if getattr(sys, 'frozen', False):
# If running from EXE, Tesseract will be in the internal _MEIPASS folder
tesseract_path = os.path.join(sys._MEIPASS, 'Tesseract-OCR', 'tesseract.exe')
else:
# If running from source, use the local installation
tesseract_path = r'C:\Program Files\Tesseract-OCR\tesseract.exe'
pytesseract.pytesseract.tesseract_cmd = tesseract_path
from General.SelectTibiaTab import SelectTibiaTab
def main():
# Make directories
os.makedirs("Images", exist_ok=True)
os.makedirs("Save", exist_ok=True)
os.makedirs("Save/Targeting", exist_ok=True)
os.makedirs("Save/Settings", exist_ok=True)
os.makedirs("Save/Waypoints", exist_ok=True)
os.makedirs("Save/HealingAttack", exist_ok=True)
os.makedirs("Save/SmartHotkeys", exist_ok=True)
os.makedirs("Save/Hotkeys", exist_ok=True)
app = QApplication([])
app.setStyle('Fusion')
app.setStyleSheet(Addresses.dark_theme)
login_window = SelectTibiaTab()
login_window.show()
app.exec()
if __name__ == '__main__':
main()