From 4315f6a641893022b8c1c3d1c7e670cb56f9746c Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Tue, 15 Feb 2022 10:12:31 -0500 Subject: [PATCH] Run on Python 3. --- pyinstaller.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyinstaller.spec b/pyinstaller.spec index 875629c13..eece50757 100644 --- a/pyinstaller.spec +++ b/pyinstaller.spec @@ -11,7 +11,10 @@ import struct import sys -if not hasattr(sys, 'real_prefix'): +try: + import allmydata + del allmydata +except ImportError: sys.exit("Please run inside a virtualenv with Tahoe-LAFS installed.")