You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
msgid ":program:`!fish` and :program:`!csh` activation scripts."
msgstr "Scripts de activación``fish`` y``csh``."
msgstr "Scripts de activación:program:`!fish` y:program:`!csh`."
#: ../Doc/library/venv.rst:89
msgid ""
Expand All
@@ -197,6 +213,10 @@ msgid ""
"invoking Python. Furthermore, all scripts installed in the environment "
"should be runnable without activating it."
msgstr ""
"No *necesita* específicamente activar un entorno virtual, ya que puede solo "
"especificar la ruta completa al intérprete de Python de ese entorno al "
"invocar Python. Además, todos los scripts instalados en el entorno deben "
"poder ejecutarse sin activarlo."
#: ../Doc/library/venv.rst:99
msgid ""
Expand All
@@ -209,6 +229,15 @@ msgid ""
"Explorer window should run it with the correct interpreter without the "
"environment needing to be activated or on the :envvar:`!PATH`."
msgstr ""
"Para lograr esto, los scripts instalados en entornos virtuales tienen una "
"línea \"shebang\" que apunta al intérprete de Python del entorno, en otras "
"palabras, :samp:`#!/{<path-to-venv>}/bin/python`. Esto significa que el "
"script se ejecutará con ese intérprete independientemente del valor de :"
"envvar:`!PATH`. En Windows, se admite el procesamiento de la línea "
"\"shebang\" si tiene el :ref:`launcher` instalado. Por lo tanto, hacer doble "
"clic en un script instalado en una ventana del Explorador de Windows debería "
"ejecutarlo con intérprete correcto sin la necesidad de activarse el entorno "
"o el :envvar:`!PATH`."
#: ../Doc/library/venv.rst:108
msgid ""
Expand All
@@ -218,6 +247,11 @@ msgid ""
"VIRTUAL_ENV` cannot be relied upon to determine whether a virtual "
"environment is being used."
msgstr ""
"Cuando se ha activado un entorno virtual, la variable de entorno :envvar:`!"
"VIRTUAL_ENV` se establece en la ruta del entorno. Dado que no se requiere "
"activar explícitamente una entorno virtual para usarla, no se puede confiar "
"en :envvar:`!VIRTUAL_ENV` para determinar si se está usando un entorno "
"virtual."
#: ../Doc/library/venv.rst:114
msgid ""
Expand All
@@ -234,15 +268,26 @@ msgid ""
"directory of it, you should recreate the environment in its new location. "
"Otherwise, software installed into the environment may not work as expected."
msgstr ""
"Debido a que los scripts instalados en entornos no deben esperar a que el "
"entorno se active, sus líneas shebang contienen las rutas absolutas a los "
"intérpretes de su entorno. Debido a esto, los entornos son inherentemente no "
"portables, en el caso general. Siempre debe tener un medio simple para "
"recrear un entorno (por ejemplo, si tiene un archivo de requisitos "
"``requirements.txt``, puede invocar ``pip install -r requirements.txt`` al "
"usar ``pip`` del entorno para instalar todos los paquetes que necesite el "
"entorno). Si por alguna razón necesita mover el entorno a una nueva "
"ubicación, debe recrearlo en la ubicación deseada y eliminar el de la "
"ubicación anterior. Si mueve un entorno porque movió un directorio principal "
"del mismo, debe recrear el entorno en su nueva ubicación. De lo contrario, "
"el software instalado en el entorno puede no funcionar como se espera."
#: ../Doc/library/venv.rst:128
#, fuzzy
msgid ""
"You can deactivate a virtual environment by typing ``deactivate`` in your "
"shell. The exact mechanism is platform-specific and is an internal "
"implementation detail (typically, a script or shell function will be used)."
msgstr ""
"Puede desactivar un entorno virtual al escribir\"deactivate\" en el shell. "
"Puede desactivar un entorno virtual al escribir``deactivate`` en el shell. "
"El mecanismo exacto es específico de la plataforma y es un detalle de "
"implementación interno (se usará normalmente una función de script o shell)."
Expand DownExpand Up
@@ -398,82 +443,112 @@ msgid ""
"of the environment directory will be cleared and then all necessary "
"subdirectories will be recreated."
msgstr ""
"Crea el directorio del entorno y todos los subdirectorios necesarios que aún "
"no existen, y retorna un objeto de contexto. Este objeto de contexto es solo "
"un contenedor de atributos (como rutas) para que lo usen otros métodos. Si "
"se crea :class:`EnvBuilder` con el argumento ``clear=True``, se borrará el "
"contenido del directorio del entorno y luego se recrearán todos los "
"subdirectorios necesarios."
#: ../Doc/library/venv.rst:225
msgid ""
"The returned context object is a :class:`types.SimpleNamespace` with the "
"following attributes:"
msgstr ""
"El objeto de contexto que retorna es un :class:`types.SimpleNamespace` con "
"los siguientes atributos:"
#: ../Doc/library/venv.rst:228
msgid ""
"``env_dir`` - The location of the virtual environment. Used for "
"``__VENV_DIR__`` in activation scripts (see :meth:`install_scripts`)."
msgstr ""
"``env_dir`` - La ubicación del entorno virtual. Se usa para ``__VENV_DIR__`` "
"en scripts de activación (ver :meth:`install_scripts`)."
#: ../Doc/library/venv.rst:231
msgid ""
"``env_name`` - The name of the virtual environment. Used for "
"``__VENV_NAME__`` in activation scripts (see :meth:`install_scripts`)."
msgstr ""
"``env_name`` - El nombre del entorno virtual. Se usa para ``__VENV_NAME__`` "
"en scripts de activación (ver :meth:`install_scripts`)."
#: ../Doc/library/venv.rst:234
msgid ""
"``prompt`` - The prompt to be used by the activation scripts. Used for "
"``__VENV_PROMPT__`` in activation scripts (see :meth:`install_scripts`)."
msgstr ""
"``prompt`` - El prompt que utilizarán los scripts de activación. Se usa para "
"``__VENV_PROMPT__`` en scripts de activación (ver :meth:`install_scripts`)."
#: ../Doc/library/venv.rst:237
msgid ""
"``executable`` - The underlying Python executable used by the virtual "
"environment. This takes into account the case where a virtual environment is "
"created from another virtual environment."
msgstr ""
"``executable`` - El ejecutable de Python subyacente que se utiliza por el "
"entorno virtual. Esto tiene en cuenta el caso donde se crea un entorno "
"virtual a partir de otro entorno virtual."
#: ../Doc/library/venv.rst:241
msgid "``inc_path`` - The include path for the virtual environment."
msgstr ""
msgstr "``inc_path`` - La ruta de include para el entorno virtual."
#: ../Doc/library/venv.rst:243
msgid "``lib_path`` - The purelib path for the virtual environment."
msgstr ""
msgstr "``lib_path`` - La ruta de purelib para el entorno virtual."
#: ../Doc/library/venv.rst:245
msgid "``bin_path`` - The script path for the virtual environment."
msgstr ""
msgstr "``bin_path`` - La ruta del script para el entorno virtual."
#: ../Doc/library/venv.rst:247
msgid ""
"``bin_name`` - The name of the script path relative to the virtual "
"environment location. Used for ``__VENV_BIN_NAME__`` in activation scripts "
"(see :meth:`install_scripts`)."
msgstr ""
"``bin_name`` - El nombre de la ruta del script en relación con la ubicación "
"del entorno virtual. Se usa para ``__VENV_BIN_NAME__`` en scripts de "
"activación (ver :meth:`install_scripts`)."
#: ../Doc/library/venv.rst:251
msgid ""
"``env_exe`` - The name of the Python interpreter in the virtual environment. "
"Used for ``__VENV_PYTHON__`` in activation scripts (see :meth:"
"`install_scripts`)."
msgstr ""
"``env_exe`` - El nombre del intérprete de Python en el entorno virtual. Se "
"usa para ``__VENV_PYTHON__`` en scripts de activación (ver :meth:"
"`install_scripts`)."
#: ../Doc/library/venv.rst:255
msgid ""
"``env_exec_cmd`` - The name of the Python interpreter, taking into account "
"filesystem redirections. This can be used to run Python in the virtual "
"environment."
msgstr ""
"``env_exec_cmd`` - El nombre del intérprete de Python, teniendo en cuenta "
"las redirecciones del sistema de archivos. Se puede utilizar para ejecutar "
"Python en el entorno virtual."
#: ../Doc/library/venv.rst:260
msgid ""
"The attribute ``lib_path`` was added to the context, and the context object "
"was documented."
msgstr ""
"Se agregó el atributo ``lib_path`` al contexto y se documentó el objeto de "
"contexto."
#: ../Doc/library/venv.rst:264
msgid ""
"The *venv* :ref:`sysconfig installation scheme <installation_paths>` is used "
"to construct the paths of the created directories."
msgstr ""
"El :ref:`esquema de instalación de sysconfig <installation_paths>` de *venv* "
"se utiliza para construir las rutas de los directorios creados."
#: ../Doc/library/venv.rst:271
msgid "Creates the ``pyvenv.cfg`` configuration file in the environment."
Expand Down
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.