Fixed updator
This commit is contained in:
parent
e816eae2e5
commit
b8448dea16
@ -4,20 +4,15 @@ import os, sys, requests, threading, time
|
||||
|
||||
fileList = [
|
||||
"https://raw.githubusercontent.com/OusmBlueNinja/TermPY/main/packages/builtin.py",
|
||||
"https://raw.githubusercontent.com/OusmBlueNinja/TermPY/main/packages/echo.py",
|
||||
"https://raw.githubusercontent.com/OusmBlueNinja/TermPY/main/packages/nano.py",
|
||||
"https://raw.githubusercontent.com/OusmBlueNinja/TermPY/main/packages/netget.py",
|
||||
"https://raw.githubusercontent.com/OusmBlueNinja/TermPY/main/packages/pip.py",
|
||||
"https://raw.githubusercontent.com/OusmBlueNinja/TermPY/main/packages/upd.py"
|
||||
"https://raw.githubusercontent.com/OusmBlueNinja/TermPY/main/packages/update.py"
|
||||
]
|
||||
|
||||
def download_and_save(url):
|
||||
r = requests.get(url)
|
||||
print(r)
|
||||
if 'Requests:' in r.text:
|
||||
|
||||
print(r.text)
|
||||
print(r.headers['Content-Type'])
|
||||
#print(r.text)
|
||||
fileInstallingCreator = os.path.join(os.path.dirname(os.path.realpath(__file__)), os.path.basename(url))
|
||||
with open(fileInstallingCreator, "w") as newFile:
|
||||
newFile.write(r.text)
|
||||
|
Loading…
Reference in New Issue
Block a user