Skip to content

Commit 7c7b07c

Browse files
authored
v2.0
1 parent 23bcd5b commit 7c7b07c

3 files changed

Lines changed: 24 additions & 2 deletions

File tree

data.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# WIP
2+
code = ""

req.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import subprocess
2+
3+
subprocess.call(("pip3", "install", "wget"))
4+
subprocess.call(("pip3", "install", "urllib"))
5+
subprocess.call(("pip3", "install", "requests"))
6+
input("Updated")

run.py

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# (c) ArtGames101 2018
2-
import sys, os, subprocess, time, requests, urllib.request, wget
2+
try:
3+
import sys, os, subprocess, time, requests, urllib.request, wgetyt
4+
except:
5+
import sys, os
6+
print("Error: ImportError")
7+
print("\n"
8+
"1. Install Requirements\n"
9+
"0. Exit")
10+
su = input("Option> ").lower().strip()
11+
if su == "1":
12+
import subprocess
13+
subprocess.call((sys.executable, "req.py"))
314

415
IS_WINDOWS = os.name == "nt"
516
IS_MAC = sys.platform == "darwin"
@@ -13,9 +24,12 @@ def clear_screen():
1324
def user_choice():
1425
return input("Enter Package URL> ").lower().strip()
1526

27+
def user_choicefol():
28+
return input("Enter disired folder name> ").lower().strip()
29+
1630
def main():
1731
clear_screen()
18-
print("pin v1.0 (c) ArtGames101 2018\n")
32+
print("pin 2.0 (c) ArtGames101 2018\n")
1933
choice = user_choice()
2034
try:
2135
print("Connecting to {}...".format(choice))

0 commit comments

Comments
 (0)