I tried several different solutions and this one worked for me! Thanks all.
def open_browser(url): import threading import webbrowser threading.Thread(target=webbrowser.open, args=(url,)).start()
I am using either one the following statements to call a url from a python addin using a thread. #os.startfile(url) #webbrowser.open(url,new=0)Both work with default browsers are either chrome or firefox. The problem it crashes ArcMap when MS Explorer 9 is the default browser. Anyone ran across this? Any suggestions? Larry E. White GIS Analyst/Programmer West Virginia Department of Environmental Protection
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.