clean inside python script

This commit is contained in:
Guilhem Fauré 2023-04-20 17:02:14 +02:00
parent 2c81d05d7d
commit dbf7a53cde
3 changed files with 7 additions and 4 deletions

1
.gitignore vendored
View File

@ -159,3 +159,4 @@ database/
# Outputted Markdown files
markdown/
output/

View File

@ -1,3 +0,0 @@
#!/bin/sh
rm -rf markdown/
mkdir markdown

View File

@ -1,7 +1,12 @@
import pymysql
import os
import shutil
import pymysql
import yaml
# Clean the output dir & create a new
shutil.rmtree("output/", true)
os.mkdir("output/", 777)
# Connect to the MySQL database
db = pymysql.connect(
host='localhost',