From bb3b2cc2dae30549a18ad9b3dac1145b763aff32 Mon Sep 17 00:00:00 2001 From: Mario de Frutos Date: Tue, 10 Nov 2015 13:48:52 +0100 Subject: [PATCH] Change to use the installed package --- .../python/cartodb_geocoder/example/server_func_example.sql | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/lib/python/cartodb_geocoder/example/server_func_example.sql b/server/lib/python/cartodb_geocoder/example/server_func_example.sql index b8e63e3..4f7bbc5 100644 --- a/server/lib/python/cartodb_geocoder/example/server_func_example.sql +++ b/server/lib/python/cartodb_geocoder/example/server_func_example.sql @@ -3,9 +3,7 @@ FUNCTION geocode_admin0(search text, tx_id bigint, user_id name) RETURNS Geometry AS $$ import logging - from sys import path - path.append( '/home/ubuntu/www/cartodb-geocoder/server/lib/python/cartodb_geocoder' ) - import quota_service + from cartodb_geocoder import quota_service LOG_FILENAME = '/tmp/plpython.log' logging.basicConfig(filename=LOG_FILENAME,level=logging.DEBUG)