
    9i|                     6    S SK r S SKJr  SSKJr  SSKJr  S rg)    N)Path   )get_pipeline_path)loggingc                 <   [        U 5      n[        U5      R                  nUc*  [        R                  " S5        [        5       =(       d    SnOUn[        U5      nUR                  S;  a  XC-  nUR                  R                  5       (       d   UR                  R                  SSS9  UR                  5       (       aO  [        R                  " SU S35        [        5       R                  5       nUS	:w  a  [        R                  " S
5        g  [        R                  " X$5        [        R                  " SU 35        g ! [         a#  n[        R                  " SU 35         S nAg S nAff = f! [         a#  n[        R                  " SU 35         S nAg S nAff = f)NzTPlease enter the path that you want to save the pipeline config file: (default `./`).)z.yamlz.ymlT)parentsexist_okzFailed to create directory: z	The file(z') already exists. Is it covered? (y/N):yzExit!z'The pipeline config has been saved to: zFile saving failed: )r   r   namer   infoinputsuffixparentexistsmkdir	Exceptionerrorlowerwarningshutilcopy2)pipeline	save_path	file_path	file_nametarget_pathe	overwrites          f/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/paddlex/utils/interactive_get_pipeline.pyinteractive_get_pipeliner!      sW   !(+IY$$Ib	
 gn{#K!22 $$&&	$$TD$A
 y-TUVGMMO	OOG$2Y,>{mLM  	MM8<=	  2,QC0112s0   D> /E. >
E+E&&E+.
F8FF)r   pathlibr   !inference.utils.get_pipeline_pathr   utilsr   r!        r    <module>r'      s      A !2r&   