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
c888bf7c
Kaydet (Commit)
c888bf7c
authored
Haz 03, 1992
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
append the default path to $PYTHONPATH; ignore empty $PYTHONPATH.
default DATE is now 3 Jun 1992
üst
73b715e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
5 deletions
+19
-5
config.c.in
Modules/config.c.in
+19
-5
No files found.
Modules/config.c.in
Dosyayı görüntüle @
c888bf7c
...
...
@@ -24,6 +24,9 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/* Configurable Python configuration file */
#include "PROTO.h"
#include "malloc.h"
#include "patchlevel.h"
#define VERSION "0.9.%d (%s)"
...
...
@@ -31,7 +34,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#ifdef __DATE__
#define DATE __DATE__
#else
#define DATE ">=
6 Apr
1992"
#define DATE ">=
3 Jun
1992"
#endif
#include <stdio.h>
...
...
@@ -82,7 +85,7 @@ donecalls()
}
#ifndef PYTHONPATH
#define PYTHONPATH ".:/usr/local/lib/python"
#define PYTHONPATH ".:/usr/local/lib/python"
#endif
extern char *getenv();
...
...
@@ -91,9 +94,20 @@ char *
getpythonpath()
{
char *path = getenv("PYTHONPATH");
if (path == 0)
path = PYTHONPATH;
return path;
char *defpath = PYTHONPATH;
char *buf;
int n;
if (path == 0 || *path == '\0')
return defpath;
n = strlen(path) + strlen(defpath) + 2;
buf = malloc(n);
if (buf == NULL)
return path; /* XXX too bad -- but not likely */
strcpy(buf, path);
strcat(buf, ":");
strcat(buf, defpath);
return buf;
}
...
...
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