[fix] Moving default Geonames DB path to a shared module

This commit is contained in:
Al
2015-06-15 12:53:00 -04:00
parent 7a4fa7d443
commit 73f37fe66b
2 changed files with 10 additions and 6 deletions

View File

@@ -0,0 +1,9 @@
import os
this_dir = os.path.realpath(os.path.dirname(__file__))
GEONAMES_DB_NAME = 'geonames.db'
DEFAULT_GEONAMES_DB_PATH = os.path.join(this_dir, os.path.pardir,
os.path.pardir, os.path.pardir,
'data', 'geonames', GEONAMES_DB_NAME)