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
84ef153c
Kaydet (Commit)
84ef153c
authored
Eyl 23, 2003
tarafından
Thomas Heller
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Let IDLE use the HTMLHelp docs on Windows, if found.
Already 'backported' to release23-maint.
üst
ccfbfb9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
EditorWindow.py
Lib/idlelib/EditorWindow.py
+6
-2
No files found.
Lib/idlelib/EditorWindow.py
Dosyayı görüntüle @
84ef153c
...
...
@@ -50,6 +50,7 @@ class EditorWindow:
def
__init__
(
self
,
flist
=
None
,
filename
=
None
,
key
=
None
,
root
=
None
):
if
EditorWindow
.
help_url
is
None
:
dochome
=
os
.
path
.
join
(
sys
.
prefix
,
'Doc'
,
'index.html'
)
if
sys
.
platform
.
count
(
'linux'
):
# look for html docs in a couple of standard places
pyver
=
'python-docs-'
+
'
%
s.
%
s.
%
s'
%
sys
.
version_info
[:
3
]
...
...
@@ -59,8 +60,11 @@ class EditorWindow:
basepath
=
'/usr/share/doc/'
# standard location
dochome
=
os
.
path
.
join
(
basepath
,
pyver
,
'Doc'
,
'index.html'
)
else
:
dochome
=
os
.
path
.
join
(
sys
.
prefix
,
'Doc'
,
'index.html'
)
elif
sys
.
platform
.
count
(
'win'
)
or
sys
.
platform
.
count
(
'nt'
):
chmfile
=
os
.
path
.
join
(
sys
.
prefix
,
"Python
%
d
%
d.chm"
%
sys
.
version_info
[:
2
])
if
os
.
path
.
isfile
(
chmfile
):
dochome
=
chmfile
print
"dochome ="
,
dochome
dochome
=
os
.
path
.
normpath
(
dochome
)
if
os
.
path
.
isfile
(
dochome
):
EditorWindow
.
help_url
=
dochome
...
...
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