Skip to content

Commit

Permalink
Repaired problem with file on different folder
Browse files Browse the repository at this point in the history
  • Loading branch information
raulgilabert committed Oct 22, 2022
1 parent dc63833 commit fa46188
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ def convert_file(filename):
print("Working with file: " + filename)
images = convert_from_path(filename)

filename_path_data = filename.split("/")
filename = filename_path_data[len(filename_path_data) - 1]

path_img = "images/" + filename

if os.path.exists(path_img):
Expand Down

0 comments on commit fa46188

Please sign in to comment.