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
ec577d53
Kaydet (Commit)
ec577d53
authored
Eyl 10, 1996
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Correct sys.path[0] when used stand-alone
üst
974e46cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
pdb.py
Lib/pdb.py
+6
-3
No files found.
Lib/pdb.py
Dosyayı görüntüle @
ec577d53
...
...
@@ -496,13 +496,16 @@ def help():
# When invoked as main program, invoke the debugger on a script
if
__name__
==
'__main__'
:
import
sys
import
os
if
not
sys
.
argv
[
1
:]:
print
"usage: pdb.py scriptfile [arg] ..."
sys
.
exit
(
2
)
# Get the module name and function name, if present
filename
=
sys
.
argv
[
1
]
filename
=
sys
.
argv
[
1
]
# Get script filename
del
sys
.
argv
[
0
]
# Hide "pdb.py" from argument list
del
sys
.
argv
[
0
]
# Insert script directory in front of module search path
sys
.
path
.
insert
(
0
,
os
.
path
.
dirname
(
filename
))
run
(
'execfile('
+
`filename`
+
')'
,
{
'__name__'
:
'__main__'
})
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