[fix] making transliteration path relative to data dir

This commit is contained in:
Al
2015-08-08 21:05:10 -04:00
parent 2ba0e814ad
commit cd0f95f9e2
2 changed files with 3 additions and 2 deletions

View File

@@ -15,6 +15,7 @@
#define LIBPOSTAL_DICTIONARIES_DIR LIBPOSTAL_DATA_DIR PATH_SEPARATOR "dictionaries" #define LIBPOSTAL_DICTIONARIES_DIR LIBPOSTAL_DATA_DIR PATH_SEPARATOR "dictionaries"
#define LIBPOSTAL_GEONAMES_DIR LIBPOSTAL_DATA_DIR PATH_SEPARATOR "geonames" #define LIBPOSTAL_GEONAMES_DIR LIBPOSTAL_DATA_DIR PATH_SEPARATOR "geonames"
#define LIBPOSTAL_GEODB_DIR LIBPOSTAL_DATA_DIR PATH_SEPARATOR "geodb" #define LIBPOSTAL_GEODB_DIR LIBPOSTAL_DATA_DIR PATH_SEPARATOR "geodb"
#define LIBPOSTAL_TRANSLITERATION_DIR LIBPOSTAL_DATA_DIR PATH_SEPARATOR "transliteration"
#define GEODB_BLOOM_FILTER_SIZE 100000000 #define GEODB_BLOOM_FILTER_SIZE 100000000
#define GEODB_BLOOM_FILTER_ERROR 0.001 #define GEODB_BLOOM_FILTER_ERROR 0.001

View File

@@ -15,7 +15,7 @@
#define LATIN_ASCII "latin-ascii" #define LATIN_ASCII "latin-ascii"
#define DEFAULT_TRANSLITERATION_PATH "../data/transliteration/transliteration.dat" #define DEFAULT_TRANSLITERATION_PATH LIBPOSTAL_TRANSLITERATION_DIR PATH_SEPARATOR "transliteration.dat"
#define MAX_TRANS_NAME_LEN 100 #define MAX_TRANS_NAME_LEN 100