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
ad169272
Kaydet (Commit)
ad169272
authored
Agu 14, 1995
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added List.slb alias
üst
3050a2dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
22 deletions
+5
-22
ConfigurePython.py
Mac/scripts/ConfigurePython.py
+4
-22
MkPluginAliases.as
Mac/scripts/MkPluginAliases.as
+1
-0
No files found.
Mac/scripts/ConfigurePython.py
Dosyayı görüntüle @
ad169272
...
@@ -28,6 +28,7 @@ for dynamically-linked python to use. Do one of the following:
...
@@ -28,6 +28,7 @@ for dynamically-linked python to use. Do one of the following:
sys
.
exit
(
1
)
sys
.
exit
(
1
)
import
EasyDialogs
import
EasyDialogs
import
macostools
goals
=
[
goals
=
[
(
"mactcp.slb"
,
"mactcpmodules.slb"
),
(
"mactcp.slb"
,
"mactcpmodules.slb"
),
...
@@ -37,6 +38,7 @@ goals = [
...
@@ -37,6 +38,7 @@ goals = [
(
"Dlg.slb"
,
"toolboxmodules.slb"
),
(
"Dlg.slb"
,
"toolboxmodules.slb"
),
(
"Evt.slb"
,
"toolboxmodules.slb"
),
(
"Evt.slb"
,
"toolboxmodules.slb"
),
(
"Menu.slb"
,
"toolboxmodules.slb"
),
(
"Menu.slb"
,
"toolboxmodules.slb"
),
(
"List.slb"
,
"toolboxmodules.slb"
),
(
"Qd.slb"
,
"toolboxmodules.slb"
),
(
"Qd.slb"
,
"toolboxmodules.slb"
),
(
"Res.slb"
,
"toolboxmodules.slb"
),
(
"Res.slb"
,
"toolboxmodules.slb"
),
(
"Snd.slb"
,
"toolboxmodules.slb"
),
(
"Snd.slb"
,
"toolboxmodules.slb"
),
...
@@ -51,30 +53,10 @@ goals = [
...
@@ -51,30 +53,10 @@ goals = [
(
"imgtiff.slb"
,
"imgmodules.slb"
)
(
"imgtiff.slb"
,
"imgmodules.slb"
)
]
]
#
# Not guaranteed to be correct or stay correct (Apple doesn't tell you
# how to do this), but it seems to work.
#
def
mkalias
(
src
,
dst
):
"""Create a finder alias"""
srcfss
=
macfs
.
FSSpec
(
src
)
dstfss
=
macfs
.
FSSpec
(
dst
)
alias
=
srcfss
.
NewAlias
()
srcfinfo
=
srcfss
.
GetFInfo
()
Res
.
FSpCreateResFile
(
dstfss
,
srcfinfo
.
Creator
,
srcfinfo
.
Type
,
-
1
)
h
=
Res
.
FSpOpenResFile
(
dstfss
,
3
)
resource
=
Res
.
Resource
(
alias
.
data
)
resource
.
AddResource
(
'alis'
,
0
,
''
)
Res
.
CloseResFile
(
h
)
dstfinfo
=
dstfss
.
GetFInfo
()
dstfinfo
.
Flags
=
dstfinfo
.
Flags
|
0x8000
# Alias flag
dstfss
.
SetFInfo
(
dstfinfo
)
def
main
():
def
main
():
# Ask the user for the plugins directory
# Ask the user for the plugins directory
dir
,
ok
=
macfs
.
GetDirectory
()
dir
,
ok
=
macfs
.
GetDirectory
(
'Where is the PlugIns folder?'
)
if
not
ok
:
sys
.
exit
(
0
)
if
not
ok
:
sys
.
exit
(
0
)
os
.
chdir
(
dir
.
as_pathname
())
os
.
chdir
(
dir
.
as_pathname
())
...
@@ -97,7 +79,7 @@ def main():
...
@@ -97,7 +79,7 @@ def main():
sys
.
exit
(
0
)
sys
.
exit
(
0
)
for
dst
,
src
in
goals
:
for
dst
,
src
in
goals
:
if
src
in
LibFiles
:
if
src
in
LibFiles
:
mkalias
(
src
,
dst
)
m
acostools
.
m
kalias
(
src
,
dst
)
else
:
else
:
EasyDialogs
.
Message
(
dst
+
' not created: '
+
src
+
' not found'
)
EasyDialogs
.
Message
(
dst
+
' not created: '
+
src
+
' not found'
)
...
...
Mac/scripts/MkPluginAliases.as
Dosyayı görüntüle @
ad169272
...
@@ -18,6 +18,7 @@ set G to (G & {{"Ctl.slb", "toolboxmodules.slb"}})
...
@@ -18,6 +18,7 @@ set G to (G & {{"Ctl.slb", "toolboxmodules.slb"}})
set
G
to
(
G
&
{{
"Dlg.slb"
,
"toolboxmodules.slb"
}})
set
G
to
(
G
&
{{
"Dlg.slb"
,
"toolboxmodules.slb"
}})
set
G
to
(
G
&
{{
"Evt.slb"
,
"toolboxmodules.slb"
}})
set
G
to
(
G
&
{{
"Evt.slb"
,
"toolboxmodules.slb"
}})
set
G
to
(
G
&
{{
"Menu.slb"
,
"toolboxmodules.slb"
}})
set
G
to
(
G
&
{{
"Menu.slb"
,
"toolboxmodules.slb"
}})
set
G
to
(
G
&
{{
"List.slb"
,
"toolboxmodules.slb"
}})
set
G
to
(
G
&
{{
"Qd.slb"
,
"toolboxmodules.slb"
}})
set
G
to
(
G
&
{{
"Qd.slb"
,
"toolboxmodules.slb"
}})
set
G
to
(
G
&
{{
"Res.slb"
,
"toolboxmodules.slb"
}})
set
G
to
(
G
&
{{
"Res.slb"
,
"toolboxmodules.slb"
}})
set
G
to
(
G
&
{{
"Snd.slb"
,
"toolboxmodules.slb"
}})
set
G
to
(
G
&
{{
"Snd.slb"
,
"toolboxmodules.slb"
}})
...
...
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