diff --git a/jepl/jepl_templates.py b/jepl/jepl_templates.py index b62d0ea..ac4b155 100644 --- a/jepl/jepl_templates.py +++ b/jepl/jepl_templates.py @@ -85,7 +85,7 @@ def af_label(equipment,working_distance,incident_energy,af_boundary,energy_level with open(filename, mode="w", encoding="utf-8") as message: message.write(content) -def af_labels(results_csv,author="JMK Engineering Inc.",warning="warning",project="Arc Flash Warning Label",project_num="2500",DC=False,fixedElectrode = True, SI=True,project_year=2015,test=False): +def af_labels(results_csv,author="JMK Engineering Inc.",warning="warning",project="Arc Flash Warning Label",project_num="2500",DC=False,fixedElectrode = True, SI=True,project_year=2015,output_folder='',test=False): from datetime import date date = date.today() @@ -148,9 +148,9 @@ def af_labels(results_csv,author="JMK Engineering Inc.",warning="warning",projec #template = environment.get_template("testblock.txt") if test == True: - filename = "test"+str(date) + "-"+project_num+"-label-ArcFlash.tex" + filename = output_folder +"test"+str(date) + "-"+project_num+"-label-ArcFlash.tex" else: - filename = str(date) + "-"+project_num+"-label-ArcFlash.tex" + filename = output_folder+str(date) + "-"+project_num+"-label-ArcFlash.tex" context = {"results":results,"project":label_info}