File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 99 read_yaml_header ,
1010)
1111
12- DATA_FILE = Path (__file__ ).parent / "data" / "header_data.txt"
12+ DATA_FILE = Path (__file__ ).parent . resolve () / "data" / "header_data.txt"
1313
1414
1515def load_cases ():
Original file line number Diff line number Diff line change 66from dms_datastore .read_ts import parse_yaml_header
77from dms_datastore .write_ts import prep_header
88
9- DATA_FILE = Path ( __file__ ). parent / "data" / "header_data.txt"
9+
1010
1111def leading_commented_header (text : str , comment : str = "#" ) -> str :
1212 # Use the same rule as extract_commented_header, but on an in-memory string
@@ -23,7 +23,7 @@ def load_header_cases():
2323 cases = {}
2424 current_name = None
2525 current_lines = []
26-
26+ DATA_FILE = Path ( __file__ ). parent . resolve () / "data" / "header_data.txt"
2727 for line in DATA_FILE .read_text ().splitlines (keepends = True ):
2828 if line .startswith ("!" ):
2929 if current_name is not None :
You can’t perform that action at this time.
0 commit comments