This repository has been archived on 2024-10-14. You can view files and clone it, but cannot push or open issues or pull requests.
AutoZoom/modules/install.py
2022-04-28 01:18:08 +02:00

23 lines
653 B
Python

# -*- coding: utf-8 -*-
import os
from modules.functions import getOS, appendLog
libs = ["keyboard", "ast", "inputimeout", "telegram_send", "wget", "requests", "zipfile", "asyncio", "getpass", "pypresence"]
if getOS() == "windows":
libs.append("easygui")
libs.append("tkinter")
libs.append("swinlnk")
if getOS() != "android":
libs.append("playsound")
else:
try:
if not "play-audio" in os.popen('pkg list-all').read():
os.system('pkg install play-audio')
except:
appendLog("Could not install play-audio")
with open('requirements.txt', 'w', encoding='utf-8') as f:
f.writelines('\n'.join(libs))