0

I have a code that uses pdf2image, so it has poppler as a dependency.

I want to make this python script an executable that I can share, so I need the following line of code to have the poppler path as a universal path:

    pages = convert_from_path(file, 100,poppler_path=r"C:\Users\MyUser\Desktop\PopplerFolder\poppler-22.04.0\Library\bin")

More specifically, I want to provide the poppler-22.04.0 file within the folder the main.py code is, and change the path so that the user does not have to specify the poppler path.

How do I go about doing this?

0 Answers0