MCPcopy Create free account
hub / github.com/OpenDCAI/Paper2Any / _prepend_pythonpath

Function _prepend_pythonpath

dataflow_agent/toolkits/p2vtool/p2v_tool.py:55–59  ·  view source on GitHub ↗
(extra_pythonpath: str, current_pythonpath: str = "")

Source from the content-addressed store, hash-verified

53
54
55def _prepend_pythonpath(extra_pythonpath: str, current_pythonpath: str = "") -> str:
56 parts = [part.strip() for part in extra_pythonpath.split(os.pathsep) if part.strip()]
57 if current_pythonpath:
58 parts.extend(part.strip() for part in current_pythonpath.split(os.pathsep) if part.strip())
59 return os.pathsep.join(parts)
60
61
62def pptx_to_pdf(pptx_path: Union[str, Path], output_dir: Union[str, Path]) -> str:

Callers 3

run_local_cursor_batchFunction · 0.85
transcribe_with_whisperxFunction · 0.85
_run_f5_in_subprocessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected