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