Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
Line-Smart-Workstation
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit fc72ca83
由
LN
编写于
2024-04-10 16:04:08 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
e1067ae1
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
13 行增加
和
2 行删除
TSA-V/App.config
TSA-V/hands/HandClientManager.cs
TSA-V/App.config
查看文件 @
fc72ca8
...
@@ -138,7 +138,7 @@
...
@@ -138,7 +138,7 @@
</
appSettings
>
</
appSettings
>
<
log4net
>
<
log4net
>
<
appender
name
=
"defaultAppender"
type
=
"log4net.Appender.RollingFileAppender"
>
<
appender
name
=
"defaultAppender"
type
=
"log4net.Appender.RollingFileAppender"
>
<
file
value
=
"logs/N
W
.log"
/>
<
file
value
=
"logs/N
eoStation
.log"
/>
<
param
name
=
"Encoding"
value
=
"UTF-8"
/>
<
param
name
=
"Encoding"
value
=
"UTF-8"
/>
<
appendToFile
value
=
"true"
/>
<
appendToFile
value
=
"true"
/>
<
rollingStyle
value
=
"Date"
/>
<
rollingStyle
value
=
"Date"
/>
...
...
TSA-V/hands/HandClientManager.cs
查看文件 @
fc72ca8
...
@@ -56,8 +56,16 @@ namespace TSA_V
...
@@ -56,8 +56,16 @@ namespace TSA_V
try
try
{
{
process
.
StartInfo
.
FileName
=
@"python.exe"
;
// process.StartInfo.FileName = @"python.exe";
//process.StartInfo.FileName = "D:\\python-3.9.6-embed-amd64\\python.exe";
string
pyFile
=
Application
.
StartupPath
+
@"\python-3.9.6-embed-amd64\python.exe"
;
if
(!
File
.
Exists
(
pyFile
))
{
LogUtil
.
error
(
$
"hand start : 文件{pyFile}不存在"
);
return
;
}
process
.
StartInfo
.
FileName
=
pyFile
;
//传递给进程
//传递给进程
process
.
StartInfo
.
Arguments
=
sArguments
;
process
.
StartInfo
.
Arguments
=
sArguments
;
process
.
StartInfo
.
UseShellExecute
=
false
;
//是否使用操作系统shell启动
process
.
StartInfo
.
UseShellExecute
=
false
;
//是否使用操作系统shell启动
...
@@ -78,6 +86,9 @@ namespace TSA_V
...
@@ -78,6 +86,9 @@ namespace TSA_V
catch
(
Win32Exception
e
)
catch
(
Win32Exception
e
)
{
{
LogUtil
.
error
(
$
"文件{ScriptFileName}启动出错:"
+
e
.
ToString
());
LogUtil
.
error
(
$
"文件{ScriptFileName}启动出错:"
+
e
.
ToString
());
}
catch
(
Exception
ex
)
{
LogUtil
.
error
(
$
"文件{ScriptFileName}启动出错:"
+
ex
.
ToString
());
}
}
}
}
private
static
int
GetCameraCount
()
private
static
int
GetCameraCount
()
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论