From patchwork Thu May 21 17:15:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 3117 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 49Sbq42RPVz43rF for ; Thu, 21 May 2020 17:15:28 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 49Sbq30lqrz2N7; Thu, 21 May 2020 17:15:26 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 49Sbq24Srmz2y3l; Thu, 21 May 2020 17:15:26 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 49Sbq06sJ6z2xcS; Thu, 21 May 2020 17:15:24 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 49Sbpz44S0z13Z; Thu, 21 May 2020 17:15:23 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1590081324; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=9ovA+hXg51k7RR+E5RjSxXvF0YmdpqUo223CJTstZiQ=; b=CjH+x72fH2GjpnrL293nYJTsFBFKs4CkDwpcBJ7PqngRPCl5wnDrMnZe5+bn/Nsf9mX0yw pSw4O/VcZAyzljAw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1590081324; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=9ovA+hXg51k7RR+E5RjSxXvF0YmdpqUo223CJTstZiQ=; b=lzxaLS+RC5jS2CA8zfWKgiRH48XiD0ijf5q88EI0+y4i2GhYyGzBGPhgfJzSvej+4cV5m+ NirSyVCnR1M2TJlom1W8QW/I2wiU1cdJBAoGzEFMv2rxcOIOD9/TQdB2jLGvLmju4zo1Zv VCR1XgVDlJj9f0Lx3hC+E6pXfz9X8bu4p8Y2KbdB8l2WtjW/7PNcU4sg1b3vAeF+oKZY3H 3chLSY09jG42A32+n4tR3keJJ6W589ND+xgSnZY+B4HtjPIc3AQBaeTQ9c8ynT1bB5I6md fRdmSGjFA1iGV3uFtpUExc8POtjv2Fw7l421gZLWKv/m9xm4o0Ahs6KJn081lg== From: Stefan Schantl To: location@lists.ipfire.org Subject: [PATCH] examples/create-database.py: Add hack to allow loading the module in build environment. Date: Thu, 21 May 2020 19:15:19 +0200 Message-Id: <20200521171519.63875-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Authentication-Results: mail01.ipfire.org; auth=pass smtp.mailfrom=stefan.schantl@ipfire.org X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: development@lists.ipfire.org Errors-To: development-bounces@lists.ipfire.org Sender: "Development" This script is needed to generate the database which is used by the testsuite of the perl binding of libloc. This allows us to revert the following commits: * 482eb94f165507ffcb6503e162535064d6dcecac * 3d26288681601b273f034de1f2241dc4342791b5 Signed-off-by: Stefan Schantl --- examples/python/create-database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/python/create-database.py b/examples/python/create-database.py index 86205e0..0eaa945 100644 --- a/examples/python/create-database.py +++ b/examples/python/create-database.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 -import location +import _location as location import os import sys