Added direct opening of browser to plot URL.

This commit is contained in:
emery.berger@gmail.com 2022-01-02 11:12:18 -05:00
parent ab1165be7d
commit 69f0f9de5a

8
coz
View File

@ -116,7 +116,13 @@ def _coz_run(args):
exit(result)
def _coz_plot(args):
sys.stdout.write('Plot your profile at http://plasma-umass.github.io/coz .\n')
coz_plot_url = 'http://plasma-umass.github.io/coz'
if sys.platform == 'darwin':
subprocess.call(['open', coz_plot_url])
elif sys.platform == 'win32':
os.startfile(coz_plot_url)
else:
subprocess.call(['xdg-open', coz_plot_url])
# Special format handler for line reference arguments
def line_ref(val):