Skip to content
Snippets Groups Projects
Verified Commit 0815587c authored by Houtan Bastani's avatar Houtan Bastani
Browse files

automatically move wp.yml to the _data directory

parent c2b513c8
Branches
No related tags found
No related merge requests found
......@@ -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')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment