Use configparser to read waydroid config

This commit is contained in:
Rikka
2023-05-27 16:55:27 +08:00
committed by Rikka
parent d72bf018d1
commit 5f6fc21c38
3 changed files with 20 additions and 7 deletions
+1 -1
View File
@@ -36,6 +36,6 @@ def get_image_dir():
sys.exit(1)
cfg.read(cfg_file)
if "waydroid" not in cfg:
Logger.error("ERROR: Required entry in config was not found, Cannot continue!") #magisk
Logger.error("Required entry in config was not found, Cannot continue!") #magisk
sys.exit(1)
return cfg["waydroid"]["images_path"]