Open webbrowser after submitting a Flamenco job

This can be disabled in the add-on preferences.
This commit is contained in:
2017-01-24 15:14:43 +01:00
parent 60018cd78c
commit 95699aca36
2 changed files with 15 additions and 0 deletions

View File

@@ -201,6 +201,14 @@ class FLAMENCO_OT_render(async_loop.AsyncModalOperatorMixin,
self.quit()
return
if prefs.flamenco_open_browser_after_submit:
import webbrowser
from urllib.parse import urljoin
from ..blender import PILLAR_WEB_SERVER_URL
url = urljoin(PILLAR_WEB_SERVER_URL, '/flamenco/jobs/%s/redir' % job_info['_id'])
webbrowser.open_new_tab(url)
# Do a final report.
if missing_sources:
names = (ms.name for ms in missing_sources)