import pywinauto
f = open("test.txt",'r',encoding = 'utf-8')
catalog = f.read(42)
app=pywinauto.Application().connect(str(catalog)['path'])
app.kill()
c:\Program Files\Notepad++\notepad++.exe
{
"path": """c:\Program Files\Notepad++\notepad++.exe"""
}
import pywinauto
import json
f = open("test.txt",'r',encoding = 'utf-8')
config= f.read()
catalog = json.loads(config)['path']
app=pywinauto.Application().connect(catalog)
app.kill()