automatically move wp.yml to the _data directory

parent c2b513c8
......@@ -88,5 +88,11 @@ for key in sorted(wps, reverse=True):
yml.write('\n')
yml.close()
wp_data_file = "../../_data/wp.yml"
if os.path.exists(wp_data_file):
os.remove(wp_data_file)
os.rename("wp.yml", wp_data_file)
print('Done writing wp.yml')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment