From 7ec37a6eb3210c24df3a9952f54d6674176ba3ed Mon Sep 17 00:00:00 2001 From: Sokow86 Date: Mon, 29 Mar 2021 10:21:49 +0200 Subject: [PATCH] Update create_toc.py --- create_toc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create_toc.py b/create_toc.py index 85ea0b1..a2ab0ca 100644 --- a/create_toc.py +++ b/create_toc.py @@ -11,7 +11,7 @@ def add_to_toc(prefix, line): return prefix + "[" + link_description +"](" + root_path + "#" + pointer + ")" root_path = "https://github.com/Sokow86/awesome-malware-resources/blob/main/README.md" -f = open("C:\\Users\\ddegroot\\Documents\\GitHub\\awesome-malware-resources\\README.md") +f = open("C:\\Users\\%USERNAME%\\Documents\\GitHub\\awesome-malware-resources\\README.md") toc = "# Table of Contents\n" if(f): line = f.readline() # ignore first line