Delete imports.py

This commit is contained in:
ElBe 2022-10-14 21:06:53 +02:00 committed by GitHub
parent a5f9d18345
commit 2d0426d23a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,28 +0,0 @@
'''
Module importer for the discord.py Bot.
© by ElBe.
Version: 0.1.2
NOTE: Only execute once. Only works on windows (for now).
'''
#Imports
import os
import subprocess
#Executable
executable = os.path.expanduser('~') + r'\\AppData\\Local\\Microsoft\\WindowsApps\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\python.exe'
#Main
try:
subprocess.check_call([executable, '-m', 'pip', 'install', 'discord.py'])
subprocess.check_call([executable, '-m', 'pip', 'install', 'asyncio'])
subprocess.check_call([executable, '-m', 'pip', 'install', 'datetime'])
subprocess.check_call([executable, '-m', 'pip', 'install', 'psutil'])
print('Packages installed successfully!')
except subprocess.CalledProcessError:
print('Error while trying to install the packages.')