For example i want to open HTML files in the browser using python (exactly the webbrowser module ) but i want that page to be in the active tab and only one instance of that page should be opened in the whole web browser.
Here is simple python code that i'm using
import webbrowser
def openWebPage(url):
webbrowser.open(url)
## before opening the html page i want to make sure
## it is not opened already, otherwise select it and make it the active tab
openWebPage('/var/www/html/index.html')