Try simplifying pdf_builder path setup.

This commit is contained in:
Sage Vaillancourt 2022-10-03 16:05:38 -04:00
parent b4212df850
commit ebb3127dd2
2 changed files with 5 additions and 5 deletions

View File

@ -7,9 +7,8 @@ from dataclasses import dataclass
from flask import send_from_directory, Response
root_dir = os.path.dirname(os.getcwd())
proj_dir = root_dir + '/undercover/'
output_dir = proj_dir + 'outputs/'
proj_dir = os.path.dirname(os.getcwd())
output_dir = proj_dir + '/outputs/'
base_tex_text = open(proj_dir + '/letter_templates/base.tex', 'r').read()
@ -25,8 +24,9 @@ class CLData:
jobAndPronoun: str
skillTypes: str
mySkills: str
closingText: str
body: str
closingText: str
def get_pairs(self) -> list[(str, str)]:
return [
@ -35,6 +35,7 @@ class CLData:
('jobAndPronoun', self.jobAndPronoun),
('skillTypes', self.skillTypes),
('mySkills', self.mySkills),
('closingText', self.closingText),
('body', self.body),
]

View File

@ -1,7 +1,6 @@
# Copyright Sage Vaillancourt 2021
import json
import logging
import os
import subprocess
import threading