summaryrefslogtreecommitdiff
path: root/0001-force-frozen-true.patch
blob: ef345bb0aeb05bdb460ece8ea98893c7627594cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From af541a4f8ddda287f74687327e4ed89b79557777 Mon Sep 17 00:00:00 2001
From: tropf <tropf@noreply.codeberg.org>
Date: Mon, 5 Aug 2024 21:25:33 +0200
Subject: [PATCH 1/3] force frozen=true

Enforce installation in frozen mode, i.e. as a packaged version where
source can not be modified.
---
 inkstitch.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inkstitch.py b/inkstitch.py
index 50f33d19..398465ca 100644
--- a/inkstitch.py
+++ b/inkstitch.py
@@ -40,7 +40,7 @@ else:
     ini = {}
 # --------------------------------------------------------------------------------------------
 
-running_as_frozen = getattr(sys, 'frozen', None) is not None  # check if running from pyinstaller bundle
+running_as_frozen = True
 
 if not running_as_frozen:  # override running_as_frozen from DEBUG.toml - for testing
     if safe_get(ini, "DEBUG", "force_frozen", default=False):
-- 
2.36.0