prod config for docker specific path

This commit is contained in:
dechert
2021-06-17 18:40:31 +02:00
parent 8fec12133b
commit fbf34ffcdb
7 changed files with 56 additions and 4 deletions

View File

@@ -9,6 +9,9 @@ import shutil
NUMBER_OF_ANSWERS = 5
# BASE_FODLER = "test_data"
import config_parser
OUTPUT_FODLER = config_parser.output_path
class QuestionAndAnswers:
def __init__(self, question, answerArray, category):
@@ -28,7 +31,7 @@ def convert(csv_path, output_pdf=False):
def write_markdown_file(csv_path):
# csv_path = "quiz-example.csv"
OUTPUT_FODLER = "output"
# OUTPUT_FODLER = "output"
if not os.path.exists(OUTPUT_FODLER):
os.makedirs(OUTPUT_FODLER)
@@ -116,7 +119,7 @@ def to_pdf(filename):
current_dir = os.getcwd()
print(current_dir)
OUTPUT_FODLER = "output"
# OUTPUT_FODLER = "output"
output_folder_path = os.path.join(current_dir, OUTPUT_FODLER)
# https://docker-py.readthedocs.io/en/stable/containers.html