Merge branch 'main' into big-reddit-requests-update

This commit is contained in:
AIrjen
2023-04-21 09:52:14 +02:00
committed by GitHub
+1 -1
View File
@@ -21,7 +21,7 @@ def add_from_csv(completeprompt, csvfilename, addcomma, prefix, suffix):
def csv_to_list(csvfilename):
csvlist = []
script_dir = os.path.dirname(os.path.abspath(__file__))
full_path = os.path.join(script_dir, ".\\csvfiles\\" )
full_path = os.path.join(script_dir, "./csvfiles/" )
with open(full_path + csvfilename + ".csv", "r", newline="",encoding="utf8") as file:
reader = csv.reader(file, delimiter=",")
for row in reader: