Created
February 19, 2020 20:29
-
-
Save Delivator/1844e3262068be6a87de63fcd9346694 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
from siaskynet import Skynet | |
# upload | |
print("Uploading", str(sys.argv[1])) | |
skylink = Skynet.UploadFile(str(sys.argv[1])) | |
print("Upload successful, skylink: " + skylink) | |
os.system("echo " + skylink + " | clip") | |
os.system("start https://siasky.net/" + skylink.replace("sia://", "")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment