Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AirtestIDE无法导入其它文件夹里的py文件 #1072

Open
AArlend opened this issue Jul 26, 2022 · 2 comments
Open

AirtestIDE无法导入其它文件夹里的py文件 #1072

AArlend opened this issue Jul 26, 2022 · 2 comments

Comments

@AArlend
Copy link

AArlend commented Jul 26, 2022

module
该py文件可在我的pycharm导入并使用,反而在IDE中无法导入(已配置Python.exe路径)

@Wangdenan
Copy link

同样遇到这个问题,怎么解决的呢

@yung5133
Copy link

yung5133 commented Mar 7, 2023

把这两行加到最上面可以解决:
auto_setup(file, project_root=r"D:\Project")
using("Airtest")
这样IDE也可以使用IDE自带的python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants