diff --git a/makePDF.py b/makePDF.py index 1e199599..89c812ab 100644 --- a/makePDF.py +++ b/makePDF.py @@ -20,6 +20,7 @@ def getOEMCP(): # Windows OEM/Ansi codepage mismatch issue. # We need the OEM cp, because texify and friends are console programs + import ctypes codepage = ctypes.windll.kernel32.GetOEMCP() return str(codepage)