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
1907367b
Commit
1907367b
authored
Jul 10, 2024
by
xiao-hesheng
Browse files
新增流程十数据库验证脚本
parent
107b793c
Changes
1
Hide whitespace changes
Inline
Side-by-side
main1/main_text.py
View file @
1907367b
...
...
@@ -10,6 +10,7 @@ curPath = os.path.abspath(os.path.dirname(__file__)) # 获取当前文件的所
rootPath
=
os
.
path
.
split
(
curPath
)[
0
]
# [0]表示元组中的为一个元素
# print('当前项目的根目录', rootPath)
sys
.
path
.
append
(
rootPath
)
# 将项目的根目录路径添加到环境变量中,然后在cmd命令行中就可以正常运行脚本
sys
.
path
.
append
(
os
.
path
.
join
(
rootPath
,
'common'
))
# print('根据当前文件获取当前文件所在目录的路径', os.path.dirname(__file__))
from
airtest.core.helper
import
using
...
...
@@ -25,7 +26,7 @@ from common.db.sql.sql_del_branch_info import delData
# sys.path.append(rootPath) # 将项目的根目录路径添加到环境变量中,然后在cmd命令行中就可以正常运行脚本
# print('rootPath',rootPath)
# sys.path.append(os.path.join(rootPath,'common'))
# print(sys.path)
import
tkinter
as
tk
from
tkinter
import
*
...
...
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