Could someone please help,
web_value.txt:
web_value.txt:
http://google.com http://YouTube.comopenwebsites.py:
import webbrowser
import os
def websites():
websitelist = "Setup1\\web_value.txt"
websites = []
browser = webbrowser.get("windows-default")
for line in open(websitelist, "r").readlines():
websites.append(line.strip())
for website in websites:
browser.open(website)
websites()The script opens the websites in my browser and it works perfectly but it also keeps opening the directory of openwebsites.py in file explorer. Is there a way I can get the list of websites from the file and open them in the browser without opening the directory of openwebsites.py in file explorer also. I’m using VSCode

