summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir@cohens.org.il>2016-09-25 20:33:28 +0300
committerTzafrir Cohen <tzafrir@cohens.org.il>2016-09-25 20:33:28 +0300
commit2180af50a21c85f44a5bdab9c2d957def9b6124a (patch)
treec3292e529963471c7f08bfca51ddd8970de4ec06
parent64829eb7958640afb29f3c9ffbd7c501c1cdd571 (diff)
output directory: relative to toplevel directory
-rw-r--r--readers/xml_reader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/readers/xml_reader.py b/readers/xml_reader.py
index 5cf449c..1b87699 100644
--- a/readers/xml_reader.py
+++ b/readers/xml_reader.py
@@ -37,7 +37,7 @@ def read_file(path, element_key):
# test print the entity
if entity != None:
if entity.TYPE not in files:
- files[entity.TYPE] = open("../out/{}.csv".format(entity.TYPE), 'w+', encoding='utf8')
+ files[entity.TYPE] = open("out/{}.csv".format(entity.TYPE), 'w+', encoding='utf8')
json_entity = entity.to_json()
print(json_entity)
writer = csv.DictWriter(files[entity.TYPE], entity.CSV_FIELDS)