[mv] csv_utils
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
import csv
|
import csv
|
||||||
|
|
||||||
|
csv.register_dialect('tsv_no_quote', delimiter='\t', quoting=csv.QUOTE_NONE, quotechar='')
|
||||||
|
|
||||||
|
|
||||||
def unicode_csv_reader(filename, **kw):
|
def unicode_csv_reader(filename, **kw):
|
||||||
for line in csv.reader(filename, **kw):
|
for line in csv.reader(filename, **kw):
|
||||||
@@ -7,7 +7,7 @@ from collections import defaultdict, OrderedDict
|
|||||||
this_dir = os.path.realpath(os.path.dirname(__file__))
|
this_dir = os.path.realpath(os.path.dirname(__file__))
|
||||||
sys.path.append(os.path.realpath(os.path.join(os.pardir, os.pardir)))
|
sys.path.append(os.path.realpath(os.path.join(os.pardir, os.pardir)))
|
||||||
|
|
||||||
from geodata.unicode_csv import unicode_csv_reader
|
from geodata.csv_utils import unicode_csv_reader
|
||||||
|
|
||||||
LANGUAGES_DIR = os.path.join(this_dir, os.pardir, os.pardir, os.pardir,
|
LANGUAGES_DIR = os.path.join(this_dir, os.pardir, os.pardir, os.pardir,
|
||||||
'resources', 'language')
|
'resources', 'language')
|
||||||
|
|||||||
Reference in New Issue
Block a user