[mv] Moving all repo data files to a resources dir, data is only for runtime files

This commit is contained in:
Al
2015-07-21 18:10:39 -04:00
parent a38b924c5d
commit 64a63fdf51
391 changed files with 27 additions and 7 deletions

View File

@@ -7,7 +7,7 @@ sys.path.append(os.path.realpath(os.path.join(os.pardir, os.pardir)))
from geodata.encoding import safe_encode, safe_decode
ADDRESS_EXPANSIONS_DIR = os.path.join(this_dir, os.pardir, os.pardir, os.pardir,
'data', 'dictionaries')
'resources', 'dictionaries')
ADDRESS_DATA_FILE = os.path.join(os.pardir, os.pardir, os.pardir, 'src', 'address_expansion_data.c')

View File

@@ -12,7 +12,7 @@ from unicode_paths import CLDR_DIR
this_dir = os.path.realpath(os.path.dirname(__file__))
DEFAULT_LANGUAGES_DIR = os.path.join(os.pardir, os.pardir, os.pardir,
'data', 'language', 'countries')
'resources', 'language', 'countries')
CLDR_SUPPLEMENTAL_DATA = os.path.join(CLDR_DIR, 'common', 'supplemental',
'supplementalData.xml')

View File

@@ -10,7 +10,7 @@ sys.path.append(os.path.realpath(os.path.join(os.pardir, os.pardir)))
from geodata.unicode_csv import unicode_csv_reader
LANGUAGES_DIR = os.path.join(this_dir, os.pardir, os.pardir, os.pardir,
'data', 'language')
'resources', 'language')
country_languages = defaultdict(OrderedDict)
# Only official and de facto official, no official_regional

View File

@@ -10,7 +10,7 @@ from geodata.encoding import safe_encode
from unicode_paths import DATA_DIR
NUMEX_DATA_DIR = os.path.join(DATA_DIR, 'numex', 'rules')
NUMEX_DATA_DIR = os.path.join(DATA_DIR, 'numex')
NUMEX_RULES_FILE = os.path.join(os.pardir, os.pardir, os.pardir, 'src', 'numex_data.c')

View File

@@ -4,7 +4,7 @@ import sys
this_dir = os.path.realpath(os.path.dirname(__file__))
sys.path.append(os.path.realpath(os.path.join(os.pardir, os.pardir)))
DATA_DIR = os.path.join(this_dir, os.pardir, os.pardir, os.pardir, 'data')
DATA_DIR = os.path.join(this_dir, os.pardir, os.pardir, os.pardir, 'resources')
UNICODE_DATA_DIR = os.path.join(DATA_DIR, 'unicode')