Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
24f7b231
Commit
24f7b231
authored
Feb 27, 1999
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set the signature for the IDE "by hand", the bundle is already included in the
PythonEngine applet template.
parent
1e4cc33a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
Mac/Tools/IDE/BuildIDE.py
Mac/Tools/IDE/BuildIDE.py
+13
-0
No files found.
Mac/Tools/IDE/BuildIDE.py
View file @
24f7b231
...
...
@@ -7,6 +7,8 @@ import os
import
buildtools
import
Res
import
py_resource
import
macfs
import
MACFS
buildtools
.
DEBUG
=
1
...
...
@@ -19,6 +21,17 @@ dstfilename = os.path.join(sys.exec_prefix, "Python IDE")
buildtools
.
process
(
template
,
mainfilename
,
dstfilename
,
1
)
# Override the owner: IDE gets its bundle stuff from the applet
# template and only needs to set the file creator.
dest_fss
=
macfs
.
FSSpec
(
dstfilename
)
dest_finfo
=
dest_fss
.
GetFInfo
()
dest_finfo
.
Creator
=
ownertype
dest_finfo
.
Type
=
'APPL'
dest_finfo
.
Flags
=
dest_finfo
.
Flags
|
MACFS
.
kHasBundle
dest_finfo
.
Flags
=
dest_finfo
.
Flags
&
~
MACFS
.
kHasBeenInited
dest_fss
.
SetFInfo
(
dest_finfo
)
targetref
=
Res
.
OpenResFile
(
dstfilename
)
Res
.
UseResFile
(
targetref
)
...
...
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