mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2025-06-26 23:49:59 +00:00
Fix stupid Python runtimeerror
This commit is contained in:
parent
332369f1b0
commit
61163c2aa9
@ -79,5 +79,6 @@ def run(args=None):
|
|||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
multiprocessing.freeze_support()
|
multiprocessing.freeze_support()
|
||||||
if sys.platform not in ('win32', 'darwin'):
|
if sys.platform not in ('win32', 'darwin'):
|
||||||
multiprocessing.set_start_method('forkserver')
|
with suppress(RuntimeError):
|
||||||
|
multiprocessing.set_start_method('forkserver')
|
||||||
sys.exit(run())
|
sys.exit(run())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user