Edit File: spawn.cpython-311.pyc
� �����f�%����������������������������d�dl�Z�d�dlZd�dlZd�dlZddlmZmZ�ddlmZ�ddlm Z �ddlm Z �g�d�Zej��������dk����rd Z d Zn@�eed d ������������Z ej��������o+ej����������������������������������������������������������������d������������Zd��Zd ��Zer*�ee�j�����������������������������ej��������d�������������������������n�eej���������������������d��Zd��Zd��Zdd�Zd��Zd��Zd��Zg�Zd��Z d��Z!d��Z"d��Z#dS�)�����N����)�get_start_method�set_start_method)�process)� reduction)�util)�_main�freeze_support�set_executable�get_executable�get_preparation_data�get_command_line�import_main_path�win32F�frozenzpythonservice.exec�����������������������|��|�a�d�S�t����������j��������dk����rt����������j��������|�������������a�d�S�t����������j��������|�������������a�d�S�)Nr���)�_python_exe�sys�platform�os�fsdecode�fsencode)�exes��� �</opt/alt/python311/lib64/python3.11/multiprocessing/spawn.pyr���r���$���sC������ �{����� ��� � ��k�#�&�&�����k�#�&�&��������c������������������������t�����������S�)N)r�����r���r���r���r���-���s�������r���z python.exec������������������H�����t����������|�������������dk����r|�d���������dk����rdS�dS�)z= Return whether commandline indicates we are forking ����r����--multiprocessing-forkTF)�len)�argvs��� r���� is_forkingr#���9���s,��������4�y�y�A�~�~�$�q�'�%=�=�=��t��ur���c�����������������������t����������t����������j��������������������rpi�}�t����������j��������dd����������D�]8}|���������������������d������������\��}}|dk����rd|�|<����&t ����������|������������|�|<����9t����������di�|����t����������j�����������������������dS�dS�)zE Run code for process object if this in not the main process r���N�=�Noner���)r#���r���r"����split�int� spawn_main�exit)�kwds�arg�name�values��� r���r ���r ���C���s���������#�(���� ����8�A�B�B�<�� (�� (�C��)�)�C�.�.�K�D�%�����!��T� � � ��Z�Z��T� � ����T������ � � � � � �� r���c�������������������N����t����������t����������dd������������r-t����������j��������dgd��|������������������������������������D���������������z���S�d}|d���������������������d��|������������������������������������D���������������������������z��}t����������j����������������������}t������������������������}|g|z���d|dgz���S�) zJ Returns prefix of command line used for spawning a child process r���Fr ���c�����������������������g�|�]}d�|z����S�)�%s=%rr�����.0�items��� r���� <listcomp>z$get_command_line.<locals>.<listcomp>Y���s������9�9�9�D��4��9�9�9r���z<from multiprocessing.spawn import spawn_main; spawn_main(%s)z, c��������������3���� ���K����|�] }d�|z��V���� dS�)r1���Nr���r2���s��� r���� <genexpr>z#get_command_line.<locals>.<genexpr>\���s&����������B�B�T�'�D�.�B�B�B�B�B�Br���z-c)�getattrr���� executable�items�joinr����_args_from_interpreter_flagsr���)r+����prog�optsr���s��� r���r���r���S���s���������s�H�e�$�$��E���!9�:�9�9�D�J�J�L�L�9�9�9�:�� ;��N���� � �B�B�T�Z�Z�\�\�B�B�B�B�B�B���0�2�2�������u�t�|�t�T�+C�D�D�Dr���c�����������������������t����������t����������j��������������������s J�d���������������t����������j��������dk����rjddl}ddl}|�%|���������������������|j��������|j��������z��d|������������}nd}t����������j ��������|�|�������������}|���������������������|t����������j ��������������������}|}n(ddlm} �|| j��������_��������|�}t����������j��������|�������������}t'����������||������������} t����������j��������| �������������dS�) z7 Run code specified by data received over pipe zNot forkingr���r���NF)�source_processr���)�resource_tracker)r#���r���r"���r����msvcrt�_winapi�OpenProcess�SYNCHRONIZE�PROCESS_DUP_HANDLEr���� duplicate�open_osfhandler����O_RDONLY��rA����_resource_tracker�_fd�dupr ���r*���)�pipe_handle� parent_pid� tracker_fdrB���rC���r@���� new_handle�fd�parent_sentinelrA����exitcodes��� r���r)���r)���b���s�������c�h���.�.��.�.�� �|�w���� � � ������!�$�0�0��#�g�&@�@��z�#��#�N�N��"�N��(��8F�H��H��H� � � "� "�:�r�{� ;� ;��(���&�&�&�&�&�&�1;��*�.� ���&��-�-���R��)�)�H��H�X�����r���c����������������������t����������j��������|�dd�������������5�}dt����������j����������������������_�������� �t ����������j�����������������������������|������������}t����������|�������������t ����������j�����������������������������|������������}t����������j����������������������`n#�t����������j����������������������`w�xY�w �d�d�d��������������n#�1�swxY�w�Y���|� ��������������������|������������S�)N�rbT)�closefd) r����fdopenr����current_process�_inheritingr����pickle�load�prepare� _bootstrap)rR���rS����from_parent�preparation_data�selfs��� r���r ���r ���~���s����� ��2�t�T� *� *� *��6�k�04���!�!�-� 6�(�/�4�4�[�A�A���$�%�%�%��#�(�(��5�5�D��'�)�)�5�5���'�)�)�5�5�5�5�5�5�6��6��6��6��6��6��6��6��6��6��6�����6��6��6��6���?�?�?�+�+�+s)����B8�A B�?B8�B(�(B8�8B<�?B<c�������������������h�����t����������t����������j����������������������dd������������rt����������d�������������d�S�)NrZ���Fa��� An attempt has been made to start a new process before the current process has finished its bootstrapping phase. This probably means that you are not using fork to start your child processes and you have forgotten to use the proper idiom in the main module: if __name__ == '__main__': freeze_support() ... The "freeze_support()" line can be omitted if the program is not going to be frozen to produce an executable. To fix this issue, refer to the "Safe importing of main module" section in https://docs.python.org/3/library/multiprocessing.html )r8���r���rY����RuntimeErrorr���r���r����_check_not_importing_mainrd�������s@�������w�&�(�(�-��?�?�� ����� �� �� � �� r���c����������� ������������t�������������������������t����������t����������j��������t ����������j����������������������j���������������������}t����������j���������!t����������j�������������������������������������������|d<���t����������j �������������������������������������������} �|���������������������d������������}t����������j ��������||<���n#�t����������$�r�Y�nw�xY�w|���������������������|�|t����������j��������t����������j ��������t#����������j����������������������t'��������������������������������������t����������j��������d���������}t+����������|j��������dd������������}|�||d<���n�t����������j��������d k����st0����������s�t2����������s�t+����������|d d������������}|�wt"����������j �����������������������������|������������s6t����������j ���������*t"����������j �����������������������������t����������j ��������|������������}t"����������j �����������������������������|������������|d<���|S�)zM Return info about parent needed by child to unpickle process object )� log_to_stderr�authkeyN� log_levelrJ���)r-����sys_path�sys_argv�orig_dir�dir�start_method�__main__r-����init_main_from_namer����__file__�init_main_from_path)rd����dictr����_log_to_stderrr���rY���rg����_logger�getEffectiveLevelr����path�copy�index�ORIGINAL_DIR� ValueError�updater"���r����getcwdr����modulesr8����__spec__r����WINEXE� WINSERVICE�isabsr;����normpath)r-����dri����i�main_module� main_mod_name� main_paths��� r���r ���r �������s�������������)��'�)�)�1� �� �� �A� ��|����7�7�9�9��+�� �X�]�]�_�_�H�+��N�N�2������*��������� �� �� ��� ���� ��H�H� �����%��I�K�K�%�'�'� � �� �� �� ���+�j�)�K��K�0�&�$�?�?�M�� �#0�� � � � ��� � �� � � ��K��T�:�:� �� ��G�M�M�)�,�,�� J��,�8��G�L�L��)=�y�I�I� �')�w�'7�'7� �'B�'B�A�#�$��Hs����B1��1 B>�=B>c����������������������d|�v�r|�d���������t����������j����������������������_��������d|�v�r|�d���������t����������j����������������������_��������d|�v�r|�d���������rt ����������j�����������������������d|�v�r,t ����������j�������������������������������������������|�d����������������������d|�v�r|�d���������t����������_ ��������d|�v�r|�d���������t����������_ ��������d|�v�rt����������j��������|�d����������������������d|�v�r|�d���������t�����������_ ��������d |�v�rt����������|�d ���������d ��������������d|�v�rt����������|�d����������������������dS�d |�v�rt!����������|�d ����������������������dS�dS�)zE Try to get current process ready to unpickle process object r-���rg���rf���rh���ri���rj���rl���rk���rm���T)�forcero���rq���N)r���rY���r-���rg���r���rf���� get_logger�setLevelr���rv���r"���r����chdirry���r����_fixup_main_from_name�_fixup_main_from_path)�datas��� r���r]���r]�������sj��������~�~�)-�f����!�!�&��D���,0��O���!�!�)��$���4��#8��������d�������"�"�4��#4�5�5�5��T���� �#����T���� �#�����}�}� ���e������T���#�J�/���������n�-�T�:�:�:�:���$�$��d�#8�9�:�:�:�:�:� �$� &� &��d�#8�9�:�:�:�:�:�� '� &r���c����������������������t�����������j��������d���������}|�dk����s|����������������������d������������rd�S�t����������|j��������dd�������������|�k����rd�S�t �������������������������������|�������������t����������j��������d������������}t����������j ��������|�dd�������������}|j�����������������������������|�������������|xt�����������j��������d<���t�����������j��������d<���d�S�)Nrn���z .__main__r-����__mp_main__T)�run_name� alter_sys) r���r}����endswithr8���r~����old_main_modules�append�types� ModuleType�runpy� run_module�__dict__r{���)�mod_name�current_mainr�����main_contents��� r���r����r��������s������� ��;�z�*�L��:����!2�!2�;�!?�!?������|�$�f�d�3�3�x�?�?��� ����L�)�)�)��"�=�1�1�K��#�H�-:�.2�4��4��4�L�������-�-�-�;F�F�C�K� ��c�k�-�8�8�8r���c�����������������������t�����������j��������d���������}t����������j�����������������������������t����������j�����������������������������|�������������������������d���������}|dk����rd�S�t ����������|dd�������������|�k����rd�S�t�������������������������������|�������������t����������j ��������d������������}t����������j��������|�d�������������}|j �����������������������������|�������������|xt�����������j��������d<���t�����������j��������d<���d�S�)Nrn���r����ipythonrp���r����)r����)r���r}���r���rv����splitext�basenamer8���r����r����r����r����r�����run_pathr����r{���)r����r����� main_namer����r����s��� r���r����r������s��������;�z�*�L���� � ���!1�!1�)�!<�!<�=�=�a�@�I��I�������|�Z��.�.�)�;�;��� ����L�)�)�)��"�=�1�1�K��>�)�+8�:��:��:�L������-�-�-�;F�F�C�K� ��c�k�-�8�8�8r���c������������������$�����t����������|��������������dS�)z< Set sys.modules['__main__'] to module at main_path N)r����)r����s��� r���r���r���/��s��������)�$�$�$�$�$r���)NN)$r���r���r����r����rJ���r���r���r����contextr���r����__all__r���r���r����r8���r9����lowerr����r���r���rv���r;����exec_prefixr#���r ���r���r)���r ���rd���r ���r����r]���r����r����r���r���r���r����<module>r�������s ����� � � � �� � � � ������������0��0��0��0��0��0��0��0�������������������������������������K��K��K����<�7��� �F��J�J� �W�S�(�E� *� *�F���X�C�N�$8�$8�$:�$:�$C�$C�DW�$X�$X�J�'��'��'���������#��N�2�7�<�<����>�>�?�?�?�?��N�3�>�"�"�"������ �� �� � E��E��E��������8 ,�� ,�� ,� �� �� �,, ��, ��, �d����";��";��";�LG��G��G�2G��G��G�8%��%��%��%��%r���