[fix] Moving default Geonames DB path to a shared module
This commit is contained in:
9
scripts/geodata/geonames/paths.py
Normal file
9
scripts/geodata/geonames/paths.py
Normal 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)
|
||||
Reference in New Issue
Block a user