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.
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 :
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.