Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
test
autotest-airtest-web-spd
Commits
68d85bc0
Commit
68d85bc0
authored
Jul 10, 2024
by
xiao-hesheng
Browse files
新增流程十数据库验证脚本
parent
12e33fe7
Changes
1
Hide whitespace changes
Inline
Side-by-side
main1/main_text.py
View file @
68d85bc0
...
@@ -15,6 +15,10 @@ curPath = os.path.abspath(os.path.dirname(__file__)) # 获取当前文件的所
...
@@ -15,6 +15,10 @@ curPath = os.path.abspath(os.path.dirname(__file__)) # 获取当前文件的所
rootPath
=
os
.
path
.
split
(
curPath
)[
0
]
# [0]表示元组中的为一个元素
rootPath
=
os
.
path
.
split
(
curPath
)[
0
]
# [0]表示元组中的为一个元素
# print('当前项目的根目录', rootPath)
# print('当前项目的根目录', rootPath)
sys
.
path
.
append
(
rootPath
)
# 将项目的根目录路径添加到环境变量中,然后在cmd命令行中就可以正常运行脚本
sys
.
path
.
append
(
rootPath
)
# 将项目的根目录路径添加到环境变量中,然后在cmd命令行中就可以正常运行脚本
print
(
'rootPath'
,
rootPath
)
sys
.
path
.
append
(
os
.
path
.
join
(
rootPath
,
'common'
))
print
(
sys
.
path
)
import
tkinter
as
tk
import
tkinter
as
tk
from
tkinter
import
*
from
tkinter
import
*
import
tkinter.messagebox
import
tkinter.messagebox
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment