Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- links = GetListViaHTTP()
- if len(links) == 1:
- subprocess.call(['firefox', '-new-window'] + links)
- elif len(links) > 1:
- subprocess.call(['firefox'] + links)
- else:
- print('Nothing to do.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement