Guest User

Untitled

a guest
Nov 17th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. ascript = 'tell application "System Events" to get (name of startup disk)'
  2. cmd = "osascript -e '{}'".format(ascript)
  3. startup_vol = subprocess.check_output(cmd, shell=True).splitlines()[0]
Add Comment
Please, Sign In to add comment