0001-wf-explicitly-crash-when-temporary-export-files-cann.patch
wcs/wf/export_to_model.py | ||
---|---|---|
69 | 69 |
subprocess.check_call(['which', 'libreoffice'], stdout=subprocess.DEVNULL) |
70 | 70 | |
71 | 71 |
def transform_to_pdf(instream): |
72 |
temp_dir = tempfile.mkdtemp() |
|
72 | 73 |
try: |
73 |
temp_dir = tempfile.mkdtemp() |
|
74 | 74 |
with tempfile.NamedTemporaryFile(dir=temp_dir) as infile: |
75 | 75 |
while True: |
76 | 76 |
chunk = instream.read(100000) |
77 |
- |