forked from varia/varia.website
many many many Varia's websites, work in progress: https://many.vvvvvvaria.org
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.
14 lines
324 B
14 lines
324 B
import os
|
|
|
|
folder = 'content/'
|
|
filenames = os.listdir(folder)
|
|
for filename in filenames:
|
|
if '.md' in filename:
|
|
print('---'+filename+'---')
|
|
text = open(folder+filename, 'r').read()
|
|
text = text.replace('/images/', 'images/')
|
|
print(text)
|
|
|
|
outfile = open(folder+filename, 'w')
|
|
outfile.write(text)
|
|
outfile.close()
|
|
|