From 2d0426d23a1c86a2bcde0fdfbf6923304c040b50 Mon Sep 17 00:00:00 2001 From: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Date: Fri, 14 Oct 2022 21:06:53 +0200 Subject: [PATCH] Delete imports.py --- Bot/imports.py | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 Bot/imports.py diff --git a/Bot/imports.py b/Bot/imports.py deleted file mode 100644 index 5fadc49..0000000 --- a/Bot/imports.py +++ /dev/null @@ -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.')