You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
521 B
24 lines
521 B
import csv
|
|
import os
|
|
|
|
script_dir = os.path.dirname(__file__)
|
|
|
|
|
|
def parsecsv():
|
|
libcsv = open(os.path.join(script_dir, "varlib.csv"), "r")
|
|
with libcsv:
|
|
csv_as_dict = csv.DictReader(libcsv)
|
|
return csv_as_dict
|
|
|
|
|
|
def getpublications():
|
|
libcsv = open(os.path.join(script_dir, "varlib.csv"), "r")
|
|
with libcsv:
|
|
csv_as_dict = csv.DictReader(libcsv)
|
|
listofbooks = []
|
|
for row in csv_as_dict:
|
|
listofbooks.append(row["Publication"])
|
|
return listofbooks
|
|
|
|
|
|
parsecsv()
|
|
|