Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. links = GetListViaHTTP()
  2.  
  3. if len(links) == 1:
  4. subprocess.call(['firefox', '-new-window'] + links)
  5. elif len(links) > 1:
  6. subprocess.call(['firefox'] + links)
  7. else:
  8. print('Nothing to do.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement