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

python调用失败 #82

Open
Xm2zsq opened this issue Jan 20, 2025 · 6 comments
Open

python调用失败 #82

Xm2zsq opened this issue Jan 20, 2025 · 6 comments

Comments

@Xm2zsq
Copy link

Xm2zsq commented Jan 20, 2025

exe_path = os.path.join(os.getcwd(), 'Models', 'Release', 'ScreenCapture.exe')
process = subprocess.Popen(exe_path, shell=True)
process.wait()
return_code = process.returncode
print("return_code:", return_code) #return_code: 3221226505

Image

@xland
Copy link
Owner

xland commented Jan 21, 2025

1.启动进程要设置工作目录的。
2.看一下配置文件相对于exe的目录路径

@Xm2zsq
Copy link
Author

Xm2zsq commented Jan 22, 2025 via email

@Xm2zsq
Copy link
Author

Xm2zsq commented Jan 22, 2025 via email

@Xm2zsq
Copy link
Author

Xm2zsq commented Jan 22, 2025 via email

@Xm2zsq
Copy link
Author

Xm2zsq commented Jan 22, 2025 via email

@xland
Copy link
Owner

xland commented Jan 23, 2025

多谢支持!
单文件exe还会继续发布新版本!
此issue不用关,后续我会根据你的意见来改进

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

2 participants