I want to add GeckoDriver exe to PATH
environment variable via a python script, I found an answer on StackOverflow but this didn't work for me. My code says the path was added, but when I check in cmd
or through the system settings, it isn't there:
cwd = os.getcwd()+"\\driver\\"
if 'geckodriver' not in os.environ:
print("Added")
os.environ["Path"] = cwd