prod config for docker specific path
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user