import os, sys script_path = os.path.abspath(__file__) script_dir = os.path.dirname(script_path) base_dir = os.path.abspath(os.path.join(script_dir, '..')) cur_path = os.path.abspath(__name__) cur_dir = os.path.dirname(cur_path) sys.path.insert(0, cur_dir) from yml_generators import generate_hw_yml variables = dict( course_title="Calculus 3", course_abbrev="APPM-2350", problem_type="WebAssign", problem_abbrev="WA-", assignment_num="11.06", sections="SVEC 11.06", deck_name="Staging", model_name="PWeave", markdown_tab_length="2", string_templ_delim="¢", base_dir= "/mnt/Work/Repos/irrealis/flashcards/Math/Classes/CU-Boulder/APPM-2350/WA", header_file=os.path.join(base_dir, "scripts/WA_header.yml"), note_file=os.path.join(base_dir, "scripts/WA_note.yml"), ) generate_hw_yml(variables, 10)
import os, sys script_path = os.path.abspath(__file__) script_dir = os.path.dirname(script_path) base_dir = os.path.abspath(os.path.join(script_dir, '..')) cur_path = os.path.abspath(__name__) cur_dir = os.path.dirname(cur_path) sys.path.insert(0, cur_dir) from yml_generators import generate_hw_yml variables = dict( course_title="Calculus 3", course_abbrev="APPM-2350", problem_type="Written Homework", problem_abbrev="Hw", assignment_num="01", assignment_tag="APPM-2350-HW01", sections="SVEC 10.1 to 10.4a", deck_name="Staging", model_name="PWeave", markdown_tab_length="2", string_templ_delim="¢", base_dir=base_dir, header_file=os.path.join(base_dir, "scripts/HW_header.yml"), note_file=os.path.join(base_dir, "scripts/HW_note.yml"), ) generate_hw_yml(variables, 6)