You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logi('No activity in '+str(emrun_options.silence_timeout) +' seconds. Quitting web server with return code '+str(emrun_options.timeout_returncode) +'. (--silence_timeout option)')
529
+
logi('No activity in '+str(emrun_options.silence_timeout) +' seconds. Quitting web server with return code '+str(emrun_options.timeout_returncode) +'. (--silence-timeout option)')
logv('The html page you are running is not emrun-capable. Stdout, stderr and exit(returncode) capture will not work. Recompile the application with the --emrun linker flag to enable this, or pass --no_emrun_detect to emrun to hide this check.')
545
+
logv('The html page you are running is not emrun-capable. Stdout, stderr and exit(returncode) capture will not work. Recompile the application with the --emrun linker flag to enable this, or pass --no-emrun-detect to emrun to hide this check.')
546
546
emrun_not_enabled_nag_printed=True
547
547
548
548
# Clean up at quit, print any leftover messages in queue.
@@ -703,7 +703,7 @@ def do_POST(self):
703
703
elifdata.startswith('^exit^'):
704
704
ifnotemrun_options.serve_after_exit:
705
705
page_exit_code=int(data[6:])
706
-
logv('Web page has quit with a call to exit() with return code '+str(page_exit_code) +'. Shutting down web server. Pass --serve_after_exit to keep serving even after the page terminates with exit().')
706
+
logv('Web page has quit with a call to exit() with return code '+str(page_exit_code) +'. Shutting down web server. Pass --serve-after-exit to keep serving even after the page terminates with exit().')
loge("Running on Android requires that you explicitly specify the browser to run with --browser <id>. Run emrun --android --list_browsers to obtain a list of installed browsers you can use.")
1671
+
loge("Running on Android requires that you explicitly specify the browser to run with --browser <id>. Run emrun --android --list-browsers to obtain a list of installed browsers you can use.")
logv('Warning: emrun got immediately detached from the target browser process (the process quit with exit code '+str(premature_quit_code) +'). Cannot detect when user closes the browser. Behaving as if --serve_after_close was passed in.')
1832
+
logv('Warning: emrun got immediately detached from the target browser process (the process quit with exit code '+str(premature_quit_code) +'). Cannot detect when user closes the browser. Behaving as if --serve-after-close was passed in.')
1824
1833
ifnotoptions.browser:
1825
1834
logv('Try passing the --browser=/path/to/browser option to avoid this from occurring. See https://github.com/emscripten-core/emscripten/issues/3234 for more discussion.')
1826
1835
@@ -1838,7 +1847,7 @@ def run(cmd):
1838
1847
kill_browser_process()
1839
1848
else:
1840
1849
ifis_browser_process_alive():
1841
-
logv('Not terminating browser process, pass --kill_exit to terminate the browser when it calls exit().')
1850
+
logv('Not terminating browser process, pass --kill-exit to terminate the browser when it calls exit().')
1842
1851
# If we have created a temporary Firefox profile, we would really really
1843
1852
# like to wait until the browser closes, or otherwise we'll just have to
1844
1853
# litter temp files and keep the temporary profile alive. It is possible
@@ -1855,13 +1864,13 @@ def run(cmd):
1855
1864
returnpage_exit_code
1856
1865
1857
1866
1858
-
defmain():
1859
-
returncode=run()
1867
+
defmain(args):
1868
+
returncode=run(args)
1860
1869
logv('emrun quitting with process exit code '+str(returncode))
1861
1870
iftemp_firefox_profile_dirisnotNone:
1862
-
logi('Warning: Had to leave behind a temporary Firefox profile directory '+temp_firefox_profile_dir+' because --safe_firefox_profile was set and the browser did not quit before emrun did.')
1871
+
logi('Warning: Had to leave behind a temporary Firefox profile directory '+temp_firefox_profile_dir+' because --safe-firefox-profile was set and the browser did not quit before emrun did.')
0 commit comments