
                             d Z ddlmZ ddlmZ ddlmZ ddlZddlmZ ddlm	Z	 ddl
mZ ej                   G d	 d
ej                               Zy)z0`gcloud components copy-bundled-python` command.    )absolute_import)division)unicode_literalsN)base)util)update_managerc                   &    e Zd ZdZed        Zd Zy)CopyBundledPythonzMake a temporary copy of bundled Python installation.

  Also print its location.

  If the Python installation used to execute this command is *not* bundled, do
  not make a copy. Instead, print the location of the current Python
  installation.
  c                 :    | j                   j                  d       y )Nzvalue(python_location))display_info	AddFormat)parsers    -lib/surface/components/copy_bundled_python.pyArgszCopyBundledPython.Args(   s    
!!":;    c                     t        j                  |      }|j                         rt        j                         }d|iS t
        j                  }d|iS )Npython_location)r   GetUpdateManagerIsPythonBundledr   
CopyPythonsys
executable)selfargsmanagerr   s       r   RunzCopyBundledPython.Run,   sQ    ##D)G &113o
 // o //r   N)__name__
__module____qualname____doc__staticmethodr   r    r   r   r
   r
      s      < <0r   r
   )r    
__future__r   r   r   r   googlecloudsdk.callioper   %googlecloudsdk.command_lib.componentsr   googlecloudsdk.core.updaterr   HiddenCommandr
   r"   r   r   <module>r)      sB     7 &  ' 
 ( 6 6 0 0 0r   