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
2ae8c631
Kaydet (Commit)
2ae8c631
authored
Ock 29, 2013
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Closes #17028: Allowed Python arguments to be supplied to launcher.
üst
64a5562f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
launcher.c
PC/launcher.c
+13
-10
No files found.
PC/launcher.c
Dosyayı görüntüle @
2ae8c631
...
...
@@ -1208,6 +1208,7 @@ process(int argc, wchar_t ** argv)
void
*
version_data
;
VS_FIXEDFILEINFO
*
file_info
;
UINT
block_size
;
int
index
;
wp
=
get_env
(
L"PYLAUNCH_DEBUG"
);
if
((
wp
!=
NULL
)
&&
(
*
wp
!=
L'\0'
))
...
...
@@ -1295,13 +1296,6 @@ process(int argc, wchar_t ** argv)
else
{
p
=
argv
[
1
];
plen
=
wcslen
(
p
);
if
(
p
[
0
]
!=
L'-'
)
{
read_commands
();
maybe_handle_shebang
(
&
argv
[
1
],
command
);
}
/* No file with shebang, or an unrecognised shebang.
* Is the first arg a special version qualifier?
*/
valid
=
(
*
p
==
L'-'
)
&&
validate_version
(
&
p
[
1
]);
if
(
valid
)
{
ip
=
locate_python
(
&
p
[
1
]);
...
...
@@ -1311,6 +1305,16 @@ installed", &p[1]);
command
+=
wcslen
(
p
);
command
=
skip_whitespace
(
command
);
}
else
{
for
(
index
=
1
;
index
<
argc
;
++
index
)
{
if
(
*
argv
[
index
]
!=
L'-'
)
break
;
}
if
(
index
<
argc
)
{
read_commands
();
maybe_handle_shebang
(
&
argv
[
index
],
command
);
}
}
}
if
(
!
valid
)
{
ip
=
locate_python
(
L""
);
...
...
@@ -1329,7 +1333,7 @@ installed", &p[1]);
fwprintf
(
stdout
,
L"\
Python Launcher for Windows Version %s
\n\n
"
,
version_text
);
fwprintf
(
stdout
,
L"\
usage: %s [ launcher-arguments ] script [ script-arguments ]
\n\n
"
,
argv
[
0
]);
usage: %s [ launcher-arguments ]
[ python-arguments ]
script [ script-arguments ]
\n\n
"
,
argv
[
0
]);
fputws
(
L"\
Launcher arguments:
\n\n
\
-2 : Launch the latest Python 2.x version
\n
\
...
...
@@ -1362,4 +1366,4 @@ int cdecl wmain(int argc, wchar_t ** argv)
return
process
(
argc
,
argv
);
}
#endif
\ No newline at end of file
#endif
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