6
inxi = subprocess.Popen(['inxi', '-Fxxrzc0'], stdout=subprocess.PIPE)
7
pastebin = subprocess.Popen(['/usr/bin/pastebin'], stdin=inxi.stdout, stdout=subprocess.PIPE)
9
output = pastebin.communicate()[0]
10
output = output.split()[0] # if we have more than one URL, only use the first one
12
subprocess.call(['xdg-open', output])
13
except Exception as e:
14
print ("An error occurred while uploading the system information:")
16
print ("Please make sure you're connected to the Internet.")