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
b39be217
Kaydet (Commit)
b39be217
authored
Eyl 01, 1995
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed to work on 68K (could be yet another optimizer bug or something)
üst
54bc679d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
macgetpath.c
Mac/Python/macgetpath.c
+7
-5
No files found.
Mac/Python/macgetpath.c
Dosyayı görüntüle @
b39be217
...
...
@@ -21,6 +21,7 @@
#include <Folders.h>
#include <Resources.h>
#include <TextUtils.h>
#include <Dialogs.h>
#define PYTHONPATH "\
:\n\
...
...
@@ -97,6 +98,7 @@ PyMac_OpenPrefFile()
short
prefdirRefNum
;
long
prefdirDirID
;
short
action
;
OSErr
err
;
if
(
FindFolder
(
kOnSystemDisk
,
'
pref
'
,
kDontCreateFolder
,
&
prefdirRefNum
,
&
prefdirDirID
)
!=
noErr
)
{
...
...
@@ -116,16 +118,16 @@ PyMac_OpenPrefFile()
prefrh
=
FSpOpenResFile
(
&
dirspec
,
fsRdWrShPerm
);
if
(
prefrh
==
-
1
)
{
/* This "cannot happen":-) */
printf
(
"Cannot create preferences file
!!
\n
"
);
printf
(
"Cannot create preferences file
, error %d
\n
"
,
ResError
()
);
exit
(
1
);
}
if
(
PyMac_process_location
(
&
dirspec
)
!=
0
)
{
printf
(
"Cannot get FSSpec for application
!!
\n
"
);
if
(
(
err
=
PyMac_process_location
(
&
dirspec
)
)
!=
0
)
{
printf
(
"Cannot get FSSpec for application
, error %d
\n
"
,
err
);
exit
(
1
);
}
dirspec
.
name
[
0
]
=
0
;
if
(
NewAlias
(
NULL
,
&
dirspec
,
&
handle
)
!=
0
)
{
printf
(
"Cannot make alias to application directory
!!
\n
"
);
if
(
(
err
=
NewAlias
(
NULL
,
&
dirspec
,
&
handle
)
)
!=
0
)
{
printf
(
"Cannot make alias to application directory
, error %d
\n
"
,
err
);
exit
(
1
);
}
AddResource
((
Handle
)
handle
,
'
alis
'
,
PYTHONHOME_ID
,
"\p"
);
...
...
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