File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -98,22 +98,21 @@ def read_docs_info_from_file(
9898 where the path is relative to the folder where `task_list.py` is.
9999 """
100100 logging .info ("[read_docs_info_from_file] START" )
101- print (docs_info )
102- print (task_list_path )
103101
102+ # Preliminary checks
104103 if not docs_info .startswith ("file:" ):
105104 raise ValueError (f"Invalid docs_info='{ docs_info } '." )
106105 relative_path = Path (docs_info [5 :])
107106 if relative_path .is_absolute ():
108107 raise ValueError (
109108 f"Invalid docs_info='{ docs_info } ' (path must be relative)."
110109 )
111- base_path = Path (task_list_path ).parent
112110
111+ base_path = Path (task_list_path ).parent
113112 docs_path = (base_path / relative_path ).as_posix ()
114-
115113 logging .info (f"[read_docs_info_from_file] Reading docs from { docs_path } " )
116114 with open (docs_path , "r" ) as f :
117115 docs_info = f .read ()
118116 logging .info ("[read_docs_info_from_file] END" )
117+
119118 return docs_info
You can’t perform that action at this time.
0 commit comments