Skip to content

Commit

Permalink
Have open_url run arc browse
Browse files Browse the repository at this point in the history
  • Loading branch information
albertyw committed Jan 21, 2017
1 parent ced3b34 commit 4a2c6ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions browse.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import configparser
import os
import re
import subprocess
import sys
import webbrowser

Expand Down Expand Up @@ -177,6 +178,9 @@ def get_focus_object(sys_argv, path):

def open_url(url):
print(url)
if url.__class__ is list:
subprocess.call(url, shell=True)
return
if sys.platform == 'darwin':
webbrowser.open(url)

Expand Down

0 comments on commit 4a2c6ab

Please sign in to comment.