From 6be32bdeecbe1332936a4c43422844691743d75f Mon Sep 17 00:00:00 2001 From: Timothee 'TTimo' Besset Date: Fri, 25 Nov 2022 07:40:04 -0600 Subject: [PATCH] flatpak build has a problem with urllib.request, but also does not need it --- config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.py b/config.py index ee9af4a3..f6f11424 100644 --- a/config.py +++ b/config.py @@ -9,7 +9,6 @@ import subprocess import platform import zipfile import shutil -import urllib.request if __name__ != '__main__': from SCons.Script import * @@ -326,6 +325,7 @@ class Config: ]: if ( not os.path.exists( lib_archive ) ): print( 'downloading %s' % lib_archive ) + import urllib.request archive_web_request = urllib.request.urlopen( 'http://s3.amazonaws.com/GtkRadiant/%s' % lib_archive ) archive_File = open( lib_archive, 'wb' ) while True: