Skip to content

Instantly share code, notes, and snippets.

@quul
quul / covert.py
Created September 10, 2022 07:49
A simple python script to cover floder/name/*.jpg to PDF by https://github.com/myollie/img2pdf
from logging import root
import img2pdf
import os
def main():
root_dir = input("Please input the root dictionary of the file:")
if root_dir == "":
root_dir = os.getcwd()
os.chdir(root_dir)
folders = os.listdir()