19 lines
687 B
Python
19 lines
687 B
Python
import os
|
|
|
|
|
|
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
|
template_dir = os.path.join(BASE_DIR, 'input')
|
|
|
|
output_dir = os.path.join(BASE_DIR, 'output')
|
|
os.makedirs(output_dir, exist_ok=True)
|
|
output_html_path = os.path.join(output_dir, 'generated_report.html')
|
|
output_excel_html_path = os.path.join(output_dir, 'excel_generated_report.html')
|
|
output_pdf_path = os.path.join(output_dir, 'generated_report.pdf')
|
|
output_docx_path = os.path.join(output_dir, 'generated_report.docx')
|
|
output_excel_path = os.path.join(output_dir, 'excel_generated_report.xlsx')
|
|
|
|
|
|
|
|
|
|
report_html_path = os.path.join(template_dir, 'report_template.html')
|
|
image_path = os.path.join(template_dir, 'image.png') |