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
b55b7bb3
Kaydet (Commit)
b55b7bb3
authored
Ock 03, 2001
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use relative path for outputdir.
üst
b55e5f1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
genpluginprojects.py
Mac/scripts/genpluginprojects.py
+19
-1
No files found.
Mac/scripts/genpluginprojects.py
Dosyayı görüntüle @
b55b7bb3
import
mkcwproject
import
sys
import
os
import
string
PROJECTDIR
=
os
.
path
.
join
(
sys
.
prefix
,
":Mac:Build"
)
MODULEDIRS
=
[
# Relative to projectdirs
...
...
@@ -9,6 +10,23 @@ MODULEDIRS = [ # Relative to projectdirs
":::Modules"
,
]
def
relpath
(
base
,
path
):
"""Turn abs path into path relative to another. Only works for 2 abs paths
both pointing to folders"""
if
not
os
.
path
.
isabs
(
base
)
or
not
os
.
path
.
isabs
(
path
):
raise
'Absolute paths only'
if
base
[
-
1
]
!=
':'
:
base
=
base
+
':'
if
path
[
-
1
]
!=
':'
:
path
=
path
+
':'
basefields
=
string
.
split
(
base
,
os
.
sep
)
pathfields
=
string
.
split
(
path
,
os
.
sep
)
commonfields
=
len
(
os
.
path
.
commonprefix
((
basefields
,
pathfields
)))
basefields
=
basefields
[
commonfields
:]
pathfields
=
pathfields
[
commonfields
:]
pathfields
=
[
''
]
*
len
(
basefields
)
+
pathfields
return
string
.
join
(
pathfields
,
os
.
sep
)
def
genpluginproject
(
module
,
project
=
None
,
projectdir
=
None
,
sources
=
[],
sourcedirs
=
[],
...
...
@@ -38,7 +56,7 @@ def genpluginproject(module,
"sources"
:
sources
,
"extrasearchdirs"
:
sourcedirs
+
extradirs
,
"libraries"
:
libraries
,
"mac_outputdir"
:
os
.
path
.
join
(
sys
.
prefix
,
":Mac:Plugins"
)
,
"mac_outputdir"
:
"::Plugins"
,
"extraexportsymbols"
:
extraexportsymbols
,
}
mkcwproject
.
mkproject
(
os
.
path
.
join
(
projectdir
,
project
),
module
,
dict
)
...
...
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