bug test
This commit is contained in:
parent
bffbeb3b68
commit
3b97d699aa
24
packages/test.py
Normal file
24
packages/test.py
Normal file
@ -0,0 +1,24 @@
|
||||
#["test", "packages.netget", ["netget"]]
|
||||
# Made By OusmeBlueNinja
|
||||
import os, sys
|
||||
|
||||
|
||||
def netget(command: list):
|
||||
|
||||
print(command, len(command))
|
||||
if len(command) != 2:
|
||||
print("comand requires [ url ] [ path ]")
|
||||
return
|
||||
|
||||
url = command[0]
|
||||
location = command[1]
|
||||
try:
|
||||
import wget
|
||||
wget.download(url, location)
|
||||
except ImportError:
|
||||
os.system(f"wget {url} -O {location}")
|
||||
|
||||
except:
|
||||
print("cannot download")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user