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
bb829b7c
Kaydet (Commit)
bb829b7c
authored
Mar 21, 2003
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Getting rid of macfs.
üst
3e0196cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
tempfile.py
Lib/tempfile.py
+6
-6
__init__.py
Mac/Lib/mkcwproject/__init__.py
+5
-5
No files found.
Lib/tempfile.py
Dosyayı görüntüle @
bb829b7c
...
...
@@ -33,8 +33,8 @@ import errno as _errno
from
random
import
Random
as
_Random
if
_os
.
name
==
'mac'
:
import
macfs
as
_macfs
import
MACFS
as
_MACFS
import
Carbon.Folder
as
_Folder
import
Carbon.Folders
as
_Folders
try
:
import
fcntl
as
_fcntl
...
...
@@ -124,11 +124,11 @@ def _candidate_tempdir_list():
# Failing that, try OS-specific locations.
if
_os
.
name
==
'mac'
:
try
:
refnum
,
dirid
=
_macfs
.
FindFolder
(
_MACFS
.
kOnSystemDisk
,
_
MACFS
.
kTemporaryFolderType
,
1
)
dirname
=
_macfs
.
FSSpec
((
refnum
,
dirid
,
''
))
.
as_pathname
()
fsr
=
_Folder
.
FSFindFolder
(
_Folders
.
kOnSystemDisk
,
_
Folders
.
kTemporaryFolderType
,
1
)
dirname
=
fsr
.
as_pathname
()
dirlist
.
append
(
dirname
)
except
_
macfs
.
error
:
except
_
Folder
.
error
:
pass
elif
_os
.
name
==
'riscos'
:
dirname
=
_os
.
getenv
(
'Wimp$ScrapDir'
)
...
...
Mac/Lib/mkcwproject/__init__.py
Dosyayı görüntüle @
bb829b7c
...
...
@@ -2,7 +2,7 @@ import cwxmlgen
import
cwtalker
import
os
from
Carbon
import
AppleEvents
import
macfs
import
Carbon.File
def
mkproject
(
outputfile
,
modulename
,
settings
,
force
=
0
,
templatename
=
None
):
#
...
...
@@ -58,15 +58,15 @@ def mkproject(outputfile, modulename, settings, force=0, templatename=None):
def
makeproject
(
xmlfile
,
projectfile
):
cw
=
cwtalker
.
MyCodeWarrior
(
start
=
1
)
cw
.
send_timeout
=
AppleEvents
.
kNoTimeOut
xmlfss
=
macfs
.
FSSpec
(
xmlfile
)
prjfss
=
macfs
.
FSSpec
(
projectfile
)
xmlfss
=
Carbon
.
File
.
FSSpec
(
xmlfile
)
prjfss
=
Carbon
.
File
.
FSSpec
(
projectfile
)
cw
.
my_mkproject
(
prjfss
,
xmlfss
)
cw
.
Close_Project
()
def
buildproject
(
projectfile
):
cw
=
cwtalker
.
MyCodeWarrior
(
start
=
1
)
cw
.
send_timeout
=
AppleEvents
.
kNoTimeOut
prjfss
=
macfs
.
FSSpec
(
projectfile
)
prjfss
=
Carbon
.
File
.
FSSpec
(
projectfile
)
cw
.
open
(
prjfss
)
cw
.
Make_Project
()
# XXX Should set target
cw
.
Close_Project
()
...
...
@@ -74,7 +74,7 @@ def buildproject(projectfile):
def
cleanproject
(
projectfile
):
cw
=
cwtalker
.
MyCodeWarrior
(
start
=
1
)
cw
.
send_timeout
=
AppleEvents
.
kNoTimeOut
prjfss
=
macfs
.
FSSpec
(
projectfile
)
prjfss
=
Carbon
.
File
.
FSSpec
(
projectfile
)
cw
.
open
(
prjfss
)
cw
.
Remove_Binaries
()
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