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
9cf4e2bd
Kaydet (Commit)
9cf4e2bd
authored
Eyl 08, 1997
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Change packages to site-packages (so it's clearly not a package itself).
üst
bbd6152f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
libsite.tex
Doc/lib/libsite.tex
+5
-5
libsite.tex
Doc/libsite.tex
+5
-5
No files found.
Doc/lib/libsite.tex
Dosyayı görüntüle @
9cf4e2bd
...
...
@@ -15,13 +15,13 @@ 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 Mac or Windows) or it uses
first
\file
{
lib/python
\var
{
version
}
/packages
}
and then
first
\file
{
lib/python
\var
{
version
}
/
site-
packages
}
and then
\file
{
lib/site-python
}
(on Unix). For each of the distinct head-tail
combinations, it sees if it refers to an existing directory, and if
so, adds to
\code
{
sys.path
}
, and also inspected for path configuration
files.
\indexii
{
site-python
}{
directory
}
\indexii
{
packages
}{
directory
}
\indexii
{
site-
packages
}{
directory
}
A path configuration file is a file whose name has the form
\file
{
\var
{
package
}
.pth
}
; its contents are additional items (one
...
...
@@ -40,7 +40,7 @@ refers to a directory (rather than a file). No item is added to
For example, suppose
\code
{
sys.prefix
}
and
\code
{
sys.exec
_
prefix
}
are
set to
\file
{
/usr/local
}
. The Python 1.5 library is then installed in
\file
{
/usr/local/lib/python1.5
}
. Suppose this has a subdirectory
\file
{
/usr/local/python1.5/packages
}
with three subsubdirectories,
\file
{
/usr/local/python1.5/
site-
packages
}
with three subsubdirectories,
\file
{
foo
}
,
\file
{
bar
}
and
\file
{
spam
}
, and two path configuration
files,
\file
{
foo.pth
}
and
\file
{
bar.pth
}
. Assume
\file
{
foo.pth
}
contains the following:
...
...
@@ -64,8 +64,8 @@ bar
Then the following directories are added to sys.path, in this order:
\bcode
\begin{verbatim}
/usr/local/python1.5/packages/bar
/usr/local/python1.5/packages/foo
/usr/local/python1.5/
site-
packages/bar
/usr/local/python1.5/
site-
packages/foo
\end{verbatim}
\ecode
Note that
\file
{
bletch
}
is omitted because it doesn't exist; the
...
...
Doc/libsite.tex
Dosyayı görüntüle @
9cf4e2bd
...
...
@@ -15,13 +15,13 @@ 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 Mac or Windows) or it uses
first
\file
{
lib/python
\var
{
version
}
/packages
}
and then
first
\file
{
lib/python
\var
{
version
}
/
site-
packages
}
and then
\file
{
lib/site-python
}
(on Unix). For each of the distinct head-tail
combinations, it sees if it refers to an existing directory, and if
so, adds to
\code
{
sys.path
}
, and also inspected for path configuration
files.
\indexii
{
site-python
}{
directory
}
\indexii
{
packages
}{
directory
}
\indexii
{
site-
packages
}{
directory
}
A path configuration file is a file whose name has the form
\file
{
\var
{
package
}
.pth
}
; its contents are additional items (one
...
...
@@ -40,7 +40,7 @@ refers to a directory (rather than a file). No item is added to
For example, suppose
\code
{
sys.prefix
}
and
\code
{
sys.exec
_
prefix
}
are
set to
\file
{
/usr/local
}
. The Python 1.5 library is then installed in
\file
{
/usr/local/lib/python1.5
}
. Suppose this has a subdirectory
\file
{
/usr/local/python1.5/packages
}
with three subsubdirectories,
\file
{
/usr/local/python1.5/
site-
packages
}
with three subsubdirectories,
\file
{
foo
}
,
\file
{
bar
}
and
\file
{
spam
}
, and two path configuration
files,
\file
{
foo.pth
}
and
\file
{
bar.pth
}
. Assume
\file
{
foo.pth
}
contains the following:
...
...
@@ -64,8 +64,8 @@ bar
Then the following directories are added to sys.path, in this order:
\bcode
\begin{verbatim}
/usr/local/python1.5/packages/bar
/usr/local/python1.5/packages/foo
/usr/local/python1.5/
site-
packages/bar
/usr/local/python1.5/
site-
packages/foo
\end{verbatim}
\ecode
Note that
\file
{
bletch
}
is omitted because it doesn't exist; the
...
...
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