clean inside python script
This commit is contained in:
parent
2c81d05d7d
commit
dbf7a53cde
1
.gitignore
vendored
1
.gitignore
vendored
@ -159,3 +159,4 @@ database/
|
|||||||
|
|
||||||
# Outputted Markdown files
|
# Outputted Markdown files
|
||||||
markdown/
|
markdown/
|
||||||
|
output/
|
||||||
|
7
main.py
7
main.py
@ -1,7 +1,12 @@
|
|||||||
import pymysql
|
|
||||||
import os
|
import os
|
||||||
|
import shutil
|
||||||
|
import pymysql
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
|
# Clean the output dir & create a new
|
||||||
|
shutil.rmtree("output/", true)
|
||||||
|
os.mkdir("output/", 777)
|
||||||
|
|
||||||
# Connect to the MySQL database
|
# Connect to the MySQL database
|
||||||
db = pymysql.connect(
|
db = pymysql.connect(
|
||||||
host='localhost',
|
host='localhost',
|
||||||
|
Loading…
Reference in New Issue
Block a user