Skip to content

Commit 20a8bd2

Browse files
authored
made main.py make just a little more sense and made it easier to use
1 parent bb13556 commit 20a8bd2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

main.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@ def install_package():
55
"""Function to handle package installation via pyautogui."""
66
while True:
77
print("")
8-
ml = input("PYI INSTALLER: ").strip()
8+
print("remember that you only need to type which python library you want to install, don't type pip install. everything else will be done for you.")
9+
print("")
10+
package = input("PYI INSTALLER: ").strip()
911
pyautogui.hotkey('win', 'r')
1012
pyautogui.typewrite('powershell')
1113
pyautogui.press('enter')
1214
time.sleep(2)
13-
pyautogui.typewrite('pip install ' + ml)
15+
pyautogui.typewrite('pip install ' + package)
1416
pyautogui.press('enter')
1517
time.sleep(2)
16-
pyautogui.typewrite('echo Press enter to exit PowerShell')
1718
pyautogui.press('enter')
1819
pyautogui.typewrite('exit')
1920
pyautogui.press('enter')

0 commit comments

Comments
 (0)