mirror of
https://github.com/plasma-umass/coz.git
synced 2024-09-11 04:55:25 +03:00
Added direct opening of browser to plot URL.
This commit is contained in:
parent
ab1165be7d
commit
69f0f9de5a
8
coz
8
coz
@ -116,7 +116,13 @@ def _coz_run(args):
|
|||||||
exit(result)
|
exit(result)
|
||||||
|
|
||||||
def _coz_plot(args):
|
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
|
# Special format handler for line reference arguments
|
||||||
def line_ref(val):
|
def line_ref(val):
|
||||||
|
Loading…
Reference in New Issue
Block a user