1
0
forked from pool/pdfarranger
Files
pdfarranger/python313.patch

27 lines
842 B
Diff
Raw Permalink Normal View History

From 681fa51a2a20b13b4c77cc11a6007f99bf8da1e0 Mon Sep 17 00:00:00 2001
From: David Auer <dreua@posteo.de>
Date: Tue, 10 Jun 2025 01:14:30 +0200
Subject: [PATCH] Fix incompatibility with Python 3.13.4
---
pdfarranger/pdfarranger.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pdfarranger/pdfarranger.py b/pdfarranger/pdfarranger.py
index 631e19d94..07d90ab4c 100644
--- a/pdfarranger/pdfarranger.py
+++ b/pdfarranger/pdfarranger.py
@@ -41,11 +41,11 @@
from functools import lru_cache
from math import log
-multiprocessing.freeze_support() # Does nothing in Linux
sharedir = os.path.join(sys.prefix, 'share')
basedir = '.'
if getattr(sys, 'frozen', False):
+ multiprocessing.freeze_support()
basedir = os.path.dirname(sys.executable)
sharedir = os.path.join(basedir, 'share')
elif sys.argv[0]: