This script is great, but I have a couple issues:
I am trying to implement a script that will auto-update and then restart my server container on Linux. I have noticed that if I try to run the update binary from a different directory, it will look for the language files in the directory I am in. For example, running it from the parent directory:
root@computer:/mnt/user/appdata/vintagestory# /mnt/user/appdata/vintagestory/ModUpdater/VS_ModsUpdater
Traceback (most recent call last):
File "/mnt/user/appdata/vintagestory/ModUpdater/main.py", line 174, in <module>
File "/mnt/user/appdata/vintagestory/ModUpdater/main.py", line 132, in initialize_config
File "/mnt/user/appdata/vintagestory/ModUpdater/lang.py", line 79, in load_translations
FileNotFoundError: [Error] Language file not found: /mnt/user/appdata/vintagestory/lang/en_US.json. Ensure the path is correct.
I am not even sure where the config.ini is stored. It doesn't appear to be with the /data/ModConfig/ folder as mentioned above. What location would I expect to see this on Linux?
edit: I found this looking at the source, it was in /root/.config/VS_ModsUpdater/
Also, is there a way to bypass the "Press Enter to exit..."? That way I can automate this into a script.