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
b991f8d2
Kaydet (Commit)
b991f8d2
authored
Mar 08, 1998
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Some logical markup.
üst
b55f9d3d
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 @
b991f8d2
...
@@ -15,8 +15,8 @@ This will append site-specific paths to to the module search path.
...
@@ -15,8 +15,8 @@ This will append site-specific paths to to the module search path.
It starts by constructing up to four directories from a head and a
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
tail part. For the head part, it uses
\code
{
sys.prefix
}
and
\code
{
sys.exec
_
prefix
}
; empty heads are skipped. For
\code
{
sys.exec
_
prefix
}
; empty heads are skipped. For
the tail part, it uses the empty string (on Mac
or Windows) or it uses
the tail part, it uses the empty string (on Mac
intosh or Windows) or
first
\file
{
lib/python
\var
{
version
}
/site-packages
}
and then
it uses
first
\file
{
lib/python
\var
{
version
}
/site-packages
}
and then
\file
{
lib/site-python
}
(on
\UNIX
{}
). For each of the distinct
\file
{
lib/site-python
}
(on
\UNIX
{}
). For each of the distinct
head-tail combinations, it sees if it refers to an existing directory,
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
and if so, adds to
\code
{
sys.path
}
, and also inspected for path
...
@@ -73,11 +73,11 @@ Note that \file{bletch} is omitted because it doesn't exist; the
...
@@ -73,11 +73,11 @@ Note that \file{bletch} is omitted because it doesn't exist; the
configuration file.
configuration file.
After these path manipulations, an attempt is made to import a module
After these path manipulations, an attempt is made to import a module
named
\
cod
e
{
sitecustomize
}
\refmodindex
{
sitecustomize
}
, which can
named
\
modul
e
{
sitecustomize
}
\refmodindex
{
sitecustomize
}
, which can
perform arbitrary site-specific customizations. If this import fails
perform arbitrary site-specific customizations. If this import fails
with an
\
code
{
ImportError
}
exception, it is silently ignored.
with an
\
exception
{
ImportError
}
exception, it is silently ignored.
Note that for some non-
\UNIX
{}
systems,
\code
{
sys.prefix
}
and
Note that for some non-
\UNIX
{}
systems,
\code
{
sys.prefix
}
and
\code
{
sys.exec
_
prefix
}
are empty, and the path manipulations are
\code
{
sys.exec
_
prefix
}
are empty, and the path manipulations are
skipped; however the import of
skipped; however the import of
\
cod
e
{
sitecustomize
}
\refmodindex
{
sitecustomize
}
is still attempted.
\
modul
e
{
sitecustomize
}
\refmodindex
{
sitecustomize
}
is still attempted.
Doc/libsite.tex
Dosyayı görüntüle @
b991f8d2
...
@@ -15,8 +15,8 @@ This will append site-specific paths to to the module search path.
...
@@ -15,8 +15,8 @@ This will append site-specific paths to to the module search path.
It starts by constructing up to four directories from a head and a
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
tail part. For the head part, it uses
\code
{
sys.prefix
}
and
\code
{
sys.exec
_
prefix
}
; empty heads are skipped. For
\code
{
sys.exec
_
prefix
}
; empty heads are skipped. For
the tail part, it uses the empty string (on Mac
or Windows) or it uses
the tail part, it uses the empty string (on Mac
intosh or Windows) or
first
\file
{
lib/python
\var
{
version
}
/site-packages
}
and then
it uses
first
\file
{
lib/python
\var
{
version
}
/site-packages
}
and then
\file
{
lib/site-python
}
(on
\UNIX
{}
). For each of the distinct
\file
{
lib/site-python
}
(on
\UNIX
{}
). For each of the distinct
head-tail combinations, it sees if it refers to an existing directory,
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
and if so, adds to
\code
{
sys.path
}
, and also inspected for path
...
@@ -73,11 +73,11 @@ Note that \file{bletch} is omitted because it doesn't exist; the
...
@@ -73,11 +73,11 @@ Note that \file{bletch} is omitted because it doesn't exist; the
configuration file.
configuration file.
After these path manipulations, an attempt is made to import a module
After these path manipulations, an attempt is made to import a module
named
\
cod
e
{
sitecustomize
}
\refmodindex
{
sitecustomize
}
, which can
named
\
modul
e
{
sitecustomize
}
\refmodindex
{
sitecustomize
}
, which can
perform arbitrary site-specific customizations. If this import fails
perform arbitrary site-specific customizations. If this import fails
with an
\
code
{
ImportError
}
exception, it is silently ignored.
with an
\
exception
{
ImportError
}
exception, it is silently ignored.
Note that for some non-
\UNIX
{}
systems,
\code
{
sys.prefix
}
and
Note that for some non-
\UNIX
{}
systems,
\code
{
sys.prefix
}
and
\code
{
sys.exec
_
prefix
}
are empty, and the path manipulations are
\code
{
sys.exec
_
prefix
}
are empty, and the path manipulations are
skipped; however the import of
skipped; however the import of
\
cod
e
{
sitecustomize
}
\refmodindex
{
sitecustomize
}
is still attempted.
\
modul
e
{
sitecustomize
}
\refmodindex
{
sitecustomize
}
is still attempted.
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