Forums

How to add executables to environment variables.

On my own system, it is pretty clear how to add the geckodriver.exe file to the environment variables. When running the same script on pythonanywhere, I get the error message: 'geckodriver' executable needs to be in PATH. I assume there must be a method to make this work, but I have no idea how to access the environment variables on pythonanywhere.com or if it is even possible. I tried several bash commands that looked about right, but none of them worked for me. Is there anyone that had the same issue before and knows how to deal with it?

First thing to keep in mind is that PythonAnywhere is a Linux environment, so .exe files would not work at all. Apart from that, we can't guarantee that Firefox would work, as we know it had too slow startup and used to fail. If you want to experiment, upload a Linux executable and provide a full path to it in your code and that should be enough.