Commit d086f26a authored by 章 登恒's avatar 章 登恒
Browse files

commit

parent 856f593d
......@@ -134,7 +134,7 @@ def get_pro_path():
curPath = os.path.abspath(os.path.dirname(__file__)) # 获取当前文件的所在目录的绝对路径
# print(curPath) # C:\Users\xhs\Desktop\dbshop项目相关文档2\dbshop1\main
# #将当前文件的所在目录的绝对路径进行分离,分离成C:\Users\xhs\Desktop\dbshop项目相关文档2\dbshop1 和main,存到元组中
print(os.path.split(curPath))
# print(os.path.split(curPath))
rootPath = os.path.split(curPath)[0] # [0]表示元组中的为一个元素
# print('当前项目的根目录', rootPath)
return rootPath
......
......@@ -228,7 +228,7 @@ class SalesOrder():
if __name__ == '__main__':
try:
step1 = LoginSys1()
step1 = LoginSys()
step2_1 = QuickPurchase()
step2_2 = PurchaseOrder()
step3 = SalesOrder()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment