create folder if not exist
This commit is contained in:
@@ -7,7 +7,7 @@ import shutil
|
||||
# return True
|
||||
# return False
|
||||
NUMBER_OF_ANSWERS = 5
|
||||
BASE_FODLER = "test_data"
|
||||
# BASE_FODLER = "test_data"
|
||||
|
||||
|
||||
class QuestionAndAnswers:
|
||||
@@ -29,6 +29,10 @@ def convert(csv_path, output_pdf=False):
|
||||
def write_markdown_file(csv_path):
|
||||
# csv_path = "quiz-example.csv"
|
||||
OUTPUT_FODLER = "output"
|
||||
|
||||
if not os.path.exists(OUTPUT_FODLER):
|
||||
os.makedirs(OUTPUT_FODLER)
|
||||
|
||||
markdown_filename = "slide-deck.md"
|
||||
markdown_path = os.path.join(OUTPUT_FODLER, markdown_filename)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user