Skip to content

Commit

Permalink
Fix error in data.csv path and line termination for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
willu47 committed Jun 7, 2021
1 parent 1f857a3 commit 7b8b968
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions create_author_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
'GNUMathProg', 'GLPK', 'linear programming', "{}".format(countryname)])
}
csv_file_contents.append(contents)
with open(os.path.join(data, 'data.csv'), 'w') as csvfile:
write = DictWriter(csvfile, fieldnames=["FILENAME","TITLE","ABSTRACT","AUTHORS","KEYWORDS"])
with open(os.path.join('data', 'data.csv'), 'w') as csvfile:
write = DictWriter(csvfile, fieldnames=["FILENAME","TITLE","ABSTRACT","AUTHORS","KEYWORDS"], lineterminator = "\n")
write.writeheader()
write.writerows(csv_file_contents)

0 comments on commit 7b8b968

Please sign in to comment.