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
"If Python is run in a virtual environment (as described at :ref:`tut-venv`) "
"then ``prefix`` and ``exec_prefix`` are specific to the virtual environment."
msgstr ""
"Si Python se ejecuta en un entorno virtual (como se describe en :ref:`tut-"
"venv`) entonces ``prefix`` y ``exec_prefix`` son específicos del entorno "
"virtual."
#: ../Doc/library/sys_path_init.rst:69
msgid ""
"If a ``pyvenv.cfg`` file is found alongside the main executable, or in the "
"directory one level above the executable, the following variations apply:"
msgstr ""
"Si se encuentra un archivo ``pyvenv.cfg`` junto al ejecutable principal, o "
"en el directorio un nivel por encima del ejecutable, se aplican las "
"siguientes variaciones:"
#: ../Doc/library/sys_path_init.rst:72
msgid ""
"If ``home`` is an absolute path and :envvar:`PYTHONHOME` is not set, this "
"path is used instead of the path to the main executable when deducing "
"``prefix`` and ``exec_prefix``."
msgstr ""
"Si ``home`` es una ruta absoluta y :envvar:`PYTHONHOME` no está establecido, "
"esta ruta se utiliza en lugar de la ruta al ejecutable principal cuando se "
"deduce ``prefix`` y ``exec_prefix``."
#: ../Doc/library/sys_path_init.rst:77
msgid "_pth files"
msgstr ""
msgstr "Archivos _pth"
#: ../Doc/library/sys_path_init.rst:79
msgid ""
Expand All
@@ -146,6 +207,14 @@ msgid ""
"the shared library name overrides the one based on the executable, which "
"allows paths to be restricted for any program loading the runtime if desired."
msgstr ""
"Para anular completamente :data:`sys.path` cree un archivo ``._pth`` con el "
"mismo nombre que la biblioteca compartida o el ejecutable (``python._pth`` o "
"``python311._pth``). La ruta de la biblioteca compartida se conoce siempre "
"en Windows, pero puede no estar disponible en otras plataformas. En el "
"archivo ``._pth`` especifique una línea por cada ruta a añadir a :data:`sys."
"path``. El archivo basado en el nombre de la biblioteca compartida anula el "
"basado en el ejecutable, lo que permite restringir las rutas para cualquier "
"programa en tiempo de ejecución si se desea."
#: ../Doc/library/sys_path_init.rst:87
msgid ""
Expand All
@@ -156,16 +225,26 @@ msgid ""
"the file. Import statements other than to ``site`` are not permitted, and "
"arbitrary code cannot be specified."
msgstr ""
"Cuando el archivo existe, se ignoran todas las variables de registro y de "
"entorno, se habilita el modo aislado y no se importa :mod:`site` a menos que "
"una línea del archivo especifique ``import site``. Las rutas en blanco y las "
"líneas que comienzan con ``#`` son ignoradas. Cada ruta puede ser absoluta o "
"relativa a la ubicación del fichero. No se permiten declaraciones de "
"importación distintas de ``site``, y no se puede especificar código "
"arbitrario."
#: ../Doc/library/sys_path_init.rst:94
msgid ""
"Note that ``.pth`` files (without leading underscore) will be processed "
"normally by the :mod:`site` module when ``import site`` has been specified."
msgstr ""
"Tenga en cuenta que los archivos ``.pth`` (sin guión bajo inicial) serán "
"procesados normalmente por el módulo :mod:`site` cuando se haya especificado "
"``import site``."
#: ../Doc/library/sys_path_init.rst:98
msgid "Embedded Python"
msgstr ""
msgstr "Python embebido"
#: ../Doc/library/sys_path_init.rst:100
msgid ""
Expand All
@@ -175,11 +254,17 @@ msgid ""
"path-config`. Alternatively the older :c:func:`Py_SetPath` can be used to "
"bypass the initialization of the module search path."
msgstr ""
"Si Python está embebido dentro de otra aplicación :c:func:"
"`Py_InitializeFromConfig` y la estructura :c:type:`PyConfig` pueden "
"utilizarse para inicializar Python. Los detalles específicos de la ruta se "
"describen en :ref:`init-path-config`. Alternativamente se puede utilizar la "
"antigua :c:func:`Py_SetPath` para saltarse la inicialización de la ruta de "
"búsqueda de módulo."
#: ../Doc/library/sys_path_init.rst:107
msgid ":ref:`windows_finding_modules` for detailed Windows notes."
msgstr ""
msgstr ":ref:`windows_finding_modules` para las notas detalladas de Windows."
#: ../Doc/library/sys_path_init.rst:108
msgid ":ref:`using-on-unix` for Unix details."
msgstr ""
msgstr ":ref:`using-on-unix` para los detalles de Unix."
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.
Traducción library/sys_path_init #2098
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Traducción library/sys_path_init #2098
Changes from all commits
ad1b7fa
3e8b958
dd6c9ac
c54d98d
80bb7f3
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing