Skip to content

Commit 44c2d47

Browse files
Update ppt2pdf_linux.py
1 parent 21d829d commit 44c2d47

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ppt2pdf/ppt2pdf_linux.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
import tqdm
44
import os
55

6-
PATH="INPUT FOLDER"
7-
extension="pptx" # or ppt
8-
files = [f for f in glob.glob(PATH+ "/**/*.{}".format(extension), recursive=True)]
6+
PATH = "INPUT FOLDER"
7+
# extension
8+
et = "pptx" # or ppt
9+
files = [f for f in glob.glob(PATH + "/**/*.{}".format(et),recursive =True)]
910
for f in tqdm.tqdm(files):
1011
command = "unoconv -f pdf \"{}\"".format(f)
1112
os.system(command)

0 commit comments

Comments
 (0)