examples/create-database.py: Add hack to allow loading the module in build environment.

Message ID 20200521171519.63875-1-stefan.schantl@ipfire.org
State Accepted
Commit 61b2d4e5bc79b05fd98d2ac5068582a8082b086d
Headers
Series examples/create-database.py: Add hack to allow loading the module in build environment. |

Commit Message

Stefan Schantl May 21, 2020, 5:15 p.m. UTC
  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 <stefan.schantl@ipfire.org>
---
 examples/python/create-database.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

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