Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
adad9e68
Unverified
Kaydet (Commit)
adad9e68
authored
Ock 25, 2019
tarafından
Steve Dower
Kaydeden (comit)
GitHub
Ock 25, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-35811: Avoid propagating venv settings when launching via py.exe (GH-11677)
üst
4e02f8f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
2019-01-25-12-46-36.bpo-35811.2hU-mm.rst
...S.d/next/Windows/2019-01-25-12-46-36.bpo-35811.2hU-mm.rst
+1
-0
launcher.c
PC/launcher.c
+11
-0
No files found.
Misc/NEWS.d/next/Windows/2019-01-25-12-46-36.bpo-35811.2hU-mm.rst
0 → 100644
Dosyayı görüntüle @
adad9e68
Avoid propagating venv settings when launching via py.exe
PC/launcher.c
Dosyayı görüntüle @
adad9e68
...
@@ -1707,6 +1707,17 @@ process(int argc, wchar_t ** argv)
...
@@ -1707,6 +1707,17 @@ process(int argc, wchar_t ** argv)
command
=
skip_me
(
GetCommandLineW
());
command
=
skip_me
(
GetCommandLineW
());
debug
(
L"Called with command line: %ls
\n
"
,
command
);
debug
(
L"Called with command line: %ls
\n
"
,
command
);
#if !defined(VENV_REDIRECT)
/* bpo-35811: The __PYVENV_LAUNCHER__ variable is used to
* override sys.executable and locate the original prefix path.
* However, if it is silently inherited by a non-venv Python
* process, that process will believe it is running in the venv
* still. This is the only place where *we* can clear it (that is,
* when py.exe is being used to launch Python), so we do.
*/
SetEnvironmentVariableW
(
L"__PYVENV_LAUNCHER__"
,
NULL
);
#endif
#if defined(SCRIPT_WRAPPER)
#if defined(SCRIPT_WRAPPER)
/* The launcher is being used in "script wrapper" mode.
/* The launcher is being used in "script wrapper" mode.
* There should therefore be a Python script named <exename>-script.py in
* There should therefore be a Python script named <exename>-script.py in
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment