Update create_toc.py

This commit is contained in:
Sokow86 2021-03-29 10:21:49 +02:00 committed by GitHub
parent 6bccecd40b
commit 7ec37a6eb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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