From bc6893de99aeb9d41218775e997233a4e7ea8dd1 Mon Sep 17 00:00:00 2001 From: Mihai Siia Date: Wed, 5 Jun 2024 00:58:43 -0700 Subject: [PATCH 1/2] remove extraneous code from past merge --- report_generator/report_generator/main.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/report_generator/report_generator/main.py b/report_generator/report_generator/main.py index 8648bdb..a4e090b 100644 --- a/report_generator/report_generator/main.py +++ b/report_generator/report_generator/main.py @@ -57,11 +57,8 @@ def assemble_pdf(json_file_path: str, assignment_path: str, out_dir: str='./out/ dotenv_path = path.join(path.dirname(__file__), '.env') load_dotenv(dotenv_path) PDFLATEX_PATH = os.environ.get('PDFLATEX_PATH') - - # load path to pdflatex - dotenv_path = path.join(path.dirname(__file__), '.env') - load_dotenv(dotenv_path) - PDFLATEX_PATH = os.environ.get('PDFLATEX_PATH') + + doc = format_doc() keys = list(data.keys()) print(keys) @@ -80,8 +77,6 @@ def assemble_pdf(json_file_path: str, assignment_path: str, out_dir: str='./out/ # doc = format_doc() # doc.append(NewPage()) # doc.generate_pdf('out/out', clean_tex=False, compiler='pdflatex', silent=False) - - doc.generate_pdf('report_out/report_out', clean_tex=False, compiler=PDFLATEX_PATH) if __name__ == '__main__': assemble_pdf(sys.argv[1], sys.argv[2]) From 1c2a8454f4dad0ea2bc8f2bfb85608f5dcb8c86e Mon Sep 17 00:00:00 2001 From: Mihai Siia Date: Wed, 5 Jun 2024 00:59:41 -0700 Subject: [PATCH 2/2] add exec import --- src/extension.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/extension.ts b/src/extension.ts index 6f0b710..fc473a8 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -16,6 +16,7 @@ import { longMethod } from './longMethod'; import { longParameters } from './longParameters'; import { badSwitch } from './badSwitch'; import { lazyClass } from './lazyClass'; +import { exec } from 'child_process'; const myMap: Map = new Map(); const filePath = 'C:\\Users\\senla\\OneDrive\\Documents\\capstone\\gradeFast-1.0\\output\\data.json';