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
f0d02fbb
Kaydet (Commit)
f0d02fbb
authored
Haz 12, 2006
tarafından
Nick Coghlan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
The site module documentation also described the Windows behaviour incorrectly.
üst
f2b16f3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
libsite.tex
Doc/lib/libsite.tex
+7
-6
No files found.
Doc/lib/libsite.tex
Dosyayı görüntüle @
f0d02fbb
...
...
@@ -16,12 +16,13 @@ search path.
It starts by constructing up to four directories from a head and a
tail part. For the head part, it uses
\code
{
sys.prefix
}
and
\code
{
sys.exec
_
prefix
}
; empty heads are skipped. For
the tail part, it uses the empty string (on Windows) or
\file
{
lib/python
\shortversion
/site-packages
}
(on
\UNIX
{}
and Macintosh)
and then
\file
{
lib/site-python
}
. For each of the distinct
head-tail combinations, it sees if it refers to an existing directory,
and if so, adds it to
\code
{
sys.path
}
and also inspects the newly added
path for configuration files.
the tail part, it uses the empty string and then
\file
{
lib/site-packages
}
(on Windows) or
\file
{
lib/python
\shortversion
/site-packages
}
and then
\file
{
lib/site-python
}
(on
\UNIX
{}
and Macintosh). For each of the
distinct head-tail combinations, it sees if it refers to an existing
directory, and if so, adds it to
\code
{
sys.path
}
and also inspects
the newly added path for configuration files.
\indexii
{
site-python
}{
directory
}
\indexii
{
site-packages
}{
directory
}
...
...
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