mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-20 19:00:22 +08:00
Fix
This commit is contained in:
parent
748ba48710
commit
b195db26c6
@ -33,6 +33,7 @@ void vmess::on_buttonBox_accepted()
|
|||||||
QString param = "--inbound socks:1080 " + vmess + " -o tmp.config.json";
|
QString param = "--inbound socks:1080 " + vmess + " -o tmp.config.json";
|
||||||
PyRun_SimpleString("import sys");
|
PyRun_SimpleString("import sys");
|
||||||
PyRun_SimpleString("sys.path.append('./')");
|
PyRun_SimpleString("sys.path.append('./')");
|
||||||
|
setenv("PYTHONPATH", "./utils", 1);
|
||||||
PyObject *pModule = PyImport_ImportModule("vmess2json");
|
PyObject *pModule = PyImport_ImportModule("vmess2json");
|
||||||
PyObject *pFunc = PyObject_GetAttrString(pModule, "main");
|
PyObject *pFunc = PyObject_GetAttrString(pModule, "main");
|
||||||
PyObject *arg = PyTuple_New(1);
|
PyObject *arg = PyTuple_New(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user