adrienluitot / surfshark-linux-client

Surfshark Linux Client is simply a client for Linux for the VPN SurfShark. It’s made with python 3 and PyGObject (GTK).
MIT License
9 stars 2 forks source link

Change the paths #1

Closed adrienluitot closed 4 years ago

adrienluitot commented 4 years ago

Change the each paths int the python files, to use path from where the python file is located instead of where the command is run.

For example for this kind of code :

with open("config.json", "r") as file:

If the command is launched in /home/user instead of /home/user/surfshark-linux-client (for example) the program will try to reads the file /home/user/config.json instead of /home/user/surfshark-linux-client/config.json`.

Pretty easy to fix, normally, it just needs to add this constant __file__ before.

adrienluitot commented 4 years ago

Fixed here : 689ea69