| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取Py初始化参数 |
| | | /// </summary> |
| | | public static string[] PyInitArgs |
| | | { |
| | | get |
| | | { |
| | | string args = GetSetting("pyInitArgs"); |
| | | |
| | | return args.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 根据停牌获取用户ID |
| | | /// </summary> |
| | | public static int SelectUserIdByToken(string token) |
| | |
| | | List<string> list = new List<string>(); |
| | | if (isPy) |
| | | { |
| | | list.Add("cd \"C:\\Program Files\\QGIS 3.16\\apps\\Python37\""); |
| | | list.Add("\"C:\\Program Files\\QGIS 3.16\\bin\\qgis_process-qgis-ltr.bat\""); |
| | | //list.Add("cd \"C:\\Program Files\\QGIS 3.16\\apps\\Python37\""); |
| | | //list.Add("\"C:\\Program Files\\QGIS 3.16\\bin\\qgis_process-qgis-ltr.bat\""); |
| | | list.AddRange(PyInitArgs); |
| | | //list.Add("\"C:\\Program Files\\QGIS 3.16\\bin\\python-qgis-ltr.bat\""); |
| | | //list.Add("exit()"); |
| | | } |