Try simplifying pdf_builder path setup.
This commit is contained in:
parent
b4212df850
commit
ebb3127dd2
|
@ -7,9 +7,8 @@ from dataclasses import dataclass
|
||||||
from flask import send_from_directory, Response
|
from flask import send_from_directory, Response
|
||||||
|
|
||||||
|
|
||||||
root_dir = os.path.dirname(os.getcwd())
|
proj_dir = os.path.dirname(os.getcwd())
|
||||||
proj_dir = root_dir + '/undercover/'
|
output_dir = proj_dir + '/outputs/'
|
||||||
output_dir = proj_dir + 'outputs/'
|
|
||||||
|
|
||||||
base_tex_text = open(proj_dir + '/letter_templates/base.tex', 'r').read()
|
base_tex_text = open(proj_dir + '/letter_templates/base.tex', 'r').read()
|
||||||
|
|
||||||
|
@ -25,8 +24,9 @@ class CLData:
|
||||||
jobAndPronoun: str
|
jobAndPronoun: str
|
||||||
skillTypes: str
|
skillTypes: str
|
||||||
mySkills: str
|
mySkills: str
|
||||||
closingText: str
|
|
||||||
body: str
|
body: str
|
||||||
|
closingText: str
|
||||||
|
|
||||||
def get_pairs(self) -> list[(str, str)]:
|
def get_pairs(self) -> list[(str, str)]:
|
||||||
return [
|
return [
|
||||||
|
@ -35,6 +35,7 @@ class CLData:
|
||||||
('jobAndPronoun', self.jobAndPronoun),
|
('jobAndPronoun', self.jobAndPronoun),
|
||||||
('skillTypes', self.skillTypes),
|
('skillTypes', self.skillTypes),
|
||||||
('mySkills', self.mySkills),
|
('mySkills', self.mySkills),
|
||||||
|
|
||||||
('closingText', self.closingText),
|
('closingText', self.closingText),
|
||||||
('body', self.body),
|
('body', self.body),
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# Copyright Sage Vaillancourt 2021
|
# Copyright Sage Vaillancourt 2021
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import logging
|
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import threading
|
import threading
|
||||||
|
|
Loading…
Reference in New Issue