
    ,h	                         d Z ddlZddlmZ ddlmZ ddlmZ ddlm	Z	  ej                  e      Zej                   ej                                d	dZd Zy)
z9
Module for collecting data to be sent to the developer.
    N)dev_classes)utils)os_)Messagec                 6    t        j                  | d|d|       y )N   T)r   setup_logging)default_pathlogfileenv_keys      Q/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/extract_msg/dev.pysetup_dev_loggerr      s    	a$@    c                    t        | j                  | j                         t        j                         }| j
                  rUt        j                  j                  | j
                        st        j                  | j
                         | j
                  }n|}t        j                  ddj                  |             t        | j                        D ]Z  \  }}t        j                  ddj                  |d                t        j                  dd       	 t        |d         5 }t        j                  |       |j                  | j                   | j"                  | j$                         ddd       t        j                  dd       t        j                  dd	       t        j                  |       t+        j                  |d          t        j                  dd
       d}t,        j.                  j0                  D ]  }	 |j2                  } t7        dj                  |             ] y# 1 sw Y   xY w# t&        $ r}t        j)                  |       Y d}~d}~ww xY w# t4        $ r Y rw xY w)a(  
    Please only run this from the command line. Attempting to use this
    otherwise is likely to fail. :param args: is the class instance
    returned by `extract_msg.utils.get_command_args`. :param argv: is
    the list of arguments that were the input to the aforementioned
    function.
    r   zARGV: {}z+---- RUNNING DEVELOPER MODE ON FILE {} ----r   zEXCEPTION CHECK:)toJsonuseFileName	ContentIdNzNo exceptions raised.zDEVELOPER CLASS OUTPUT:z---- END OF DEVELOPER LOG ----z*Logging complete. Log has been saved to {})r   config_pathlogosgetcwduout_pathpathexistsmakedirsloggerformat	enumeratemsgsr   chdirsavejsonuse_filenamecid	Exception	exceptionr   loggingroothandlersbaseFilenameAttributeErrorprint)	argsargv
currentdiroutyxmsgelogpaths	            r   mainr6      s    T%%txx0J}}ww~~dmm,KK&mm
JJq*##D)*$))$ L1

1CJJ1Q4PQ

1()	31 d#$))4;L;LZ^ZbZbcd JJq12

1/0
AaD!

167&& 	A..	
 	:AA'JK-Ld d  	 Q	  " sC   H=&AH1.H=I(1H:	6H==	I%I  I%(	I43I4)NNEXTRACT_MSG_LOG_CFG)__doc__r'   extract_msgr   r   extract_msg.compatr   r   extract_msg.messager   	getLogger__name__r   
addHandlerNullHandlerr   r6    r   r   <module>rA      sU     #  ( ' 
		8	$   %'%%' (A'Lr   