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
f776dee6
Kaydet (Commit)
f776dee6
authored
Nis 22, 2003
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Hiding packages was done incorrectly. Fixed.
üst
6cb9029a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
PackageManager.py
Mac/Tools/IDE/PackageManager.py
+16
-9
No files found.
Mac/Tools/IDE/PackageManager.py
Dosyayı görüntüle @
f776dee6
...
@@ -48,11 +48,11 @@ import pimp
...
@@ -48,11 +48,11 @@ import pimp
ELIPSES
=
'...'
ELIPSES
=
'...'
USER_INSTALL_DIR
=
os
.
path
.
join
(
os
.
environ
.
get
(
'HOME'
,
''
),
USER_INSTALL_DIR
=
os
.
path
.
join
(
os
.
environ
.
get
(
'HOME'
,
''
),
'Library'
,
'Library'
,
'Python'
,
'Python'
,
sys
.
version
[:
3
],
sys
.
version
[:
3
],
'site-packages'
)
'site-packages'
)
class
PackageManagerMain
(
Wapplication
.
Application
):
class
PackageManagerMain
(
Wapplication
.
Application
):
def
__init__
(
self
):
def
__init__
(
self
):
...
@@ -204,7 +204,7 @@ class PackageManagerMain(Wapplication.Application):
...
@@ -204,7 +204,7 @@ class PackageManagerMain(Wapplication.Application):
try
:
try
:
rv
=
window
.
close
()
# ignore any errors while quitting
rv
=
window
.
close
()
# ignore any errors while quitting
except
:
except
:
rv
=
0
# (otherwise, we can get stuck!)
rv
=
0
# (otherwise, we can get stuck!)
if
rv
and
rv
>
0
:
if
rv
and
rv
>
0
:
return
return
## try:
## try:
...
@@ -270,12 +270,19 @@ class PimpInterface:
...
@@ -270,12 +270,19 @@ class PimpInterface:
return
self
.
pimpprefs
.
installDir
==
USER_INSTALL_DIR
return
self
.
pimpprefs
.
installDir
==
USER_INSTALL_DIR
def
getbrowserdata
(
self
,
show_hidden
=
1
):
def
getbrowserdata
(
self
,
show_hidden
=
1
):
self
.
packages
=
self
.
pimpdb
.
list
()
packages
=
self
.
pimpdb
.
list
()
if
show_hidden
:
self
.
packages
=
packages
else
:
self
.
packages
=
[]
for
pkg
in
packages
:
name
=
pkg
.
fullname
()
if
name
[
0
]
==
'('
and
name
[
-
1
]
==
')'
and
not
show_hidden
:
continue
self
.
packages
.
append
(
pkg
)
rv
=
[]
rv
=
[]
for
pkg
in
self
.
packages
:
for
pkg
in
self
.
packages
:
name
=
pkg
.
fullname
()
name
=
pkg
.
fullname
()
if
name
[
0
]
==
'('
and
name
[
-
1
]
==
')'
and
not
show_hidden
:
continue
status
,
_
=
pkg
.
installed
()
status
,
_
=
pkg
.
installed
()
description
=
pkg
.
description
()
description
=
pkg
.
description
()
rv
.
append
((
status
,
name
,
description
))
rv
.
append
((
status
,
name
,
description
))
...
...
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