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
50f6f6f6
Kaydet (Commit)
50f6f6f6
authored
Ock 23, 2001
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
If the template is not specified it depends on the current execution model (classic ppc or carbon).
üst
6ecf1463
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
cwxmlgen.py
Mac/Lib/mkcwproject/cwxmlgen.py
+12
-4
No files found.
Mac/Lib/mkcwproject/cwxmlgen.py
Dosyayı görüntüle @
50f6f6f6
# First attempt at automatically generating CodeWarior projects
import
os
import
MacOS
Error
=
"gencwproject.Error"
#
...
...
@@ -17,15 +18,22 @@ TEMPLATELIST= [
]
class
ProjectBuilder
:
def
__init__
(
self
,
dict
,
templatelist
=
TEMPLATELIST
,
templatedir
=
None
):
if
templatedir
==
None
:
def
__init__
(
self
,
dict
,
templatelist
=
TEMPLATELIST
,
templatename
=
None
):
if
templatename
==
None
:
if
hasattr
(
MacOS
,
'runtimemodel'
):
templatename
=
'template-
%
s'
%
MacOS
.
runtimemodel
else
:
templatename
=
'template'
if
os
.
sep
in
templatename
:
templatedir
=
templatename
else
:
try
:
packagedir
=
os
.
path
.
split
(
__file__
)[
0
]
except
NameError
:
packagedir
=
os
.
curdir
templatedir
=
os
.
path
.
join
(
packagedir
,
'template'
)
templatedir
=
os
.
path
.
join
(
packagedir
,
templatename
)
if
not
os
.
path
.
exists
(
templatedir
):
raise
Error
,
"Cannot fi
le templatedir"
raise
Error
,
"Cannot fi
nd templatedir
%
s"
%
templatedir
self
.
dict
=
dict
if
not
dict
.
has_key
(
'prefixname'
):
dict
[
'prefixname'
]
=
'mwerks_plugin_config.h'
...
...
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