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

代码中output_file_path不正确 #1

Open
JetChan95 opened this issue May 1, 2022 · 0 comments
Open

代码中output_file_path不正确 #1

JetChan95 opened this issue May 1, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@JetChan95
Copy link

JetChan95 commented May 1, 2022

在您的代码中 output_file_path = output_folder + input_file_path, 错误的输出路径导致ghostscript无法正确运行,并抛出错误Could not open file (output_file_path).

fix:
file_name = input_file_path.split("\")[-1]
output_file_path = "{}\{}".format(output_folder, file_name)

@deimo deimo added the bug Something isn't working label Sep 22, 2022
@deimo deimo pinned this issue Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants