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
769e1ff4
Commit
769e1ff4
authored
Feb 05, 2003
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a few typos, and changed FSCreateResourceFile filename argument to unicode.
parent
8d4f06a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Lib/plat-mac/buildtools.py
Lib/plat-mac/buildtools.py
+3
-3
No files found.
Lib/plat-mac/buildtools.py
View file @
769e1ff4
...
...
@@ -54,7 +54,7 @@ def findtemplate(template=None):
try
:
file
,
d1
,
d2
=
Carbon
.
File
.
FSResolveAliasFile
(
file
,
1
)
break
except
(
Carbon
.
File
.
e
rror
,
ValueError
):
except
(
Carbon
.
File
.
E
rror
,
ValueError
):
continue
else
:
raise
BuildError
,
"Template %s not found on sys.path"
%
`template`
...
...
@@ -175,7 +175,7 @@ def process_common(template, progress, code, rsrcname, destname, is_update,
output
=
Res
.
FSOpenResourceFile
(
destname
,
RESOURCE_FORK_NAME
,
WRITE
)
except
MacOS
.
Error
:
destdir
,
destfile
=
os
.
path
.
split
(
destname
)
Res
.
FSCreateResourceFile
(
destdir
,
destfile
,
RESOURCE_FORK_NAME
)
Res
.
FSCreateResourceFile
(
destdir
,
unicode
(
destfile
)
,
RESOURCE_FORK_NAME
)
output
=
Res
.
FSOpenResourceFile
(
destname
,
RESOURCE_FORK_NAME
,
WRITE
)
# Copy the resources from the target specific resource template, if any
...
...
@@ -261,7 +261,7 @@ def process_common(template, progress, code, rsrcname, destname, is_update,
# Now set the creator, type and bundle bit of the destination.
# Done with FSSpec's, FSRef FInfo isn't good enough yet (2.3a1+)
d
se
t_fss
=
Carbon
.
File
.
FSSpec
(
destname
)
d
es
t_fss
=
Carbon
.
File
.
FSSpec
(
destname
)
dest_finfo
=
dest_fss
.
FSpGetFInfo
()
dest_finfo
.
Creator
=
ownertype
dest_finfo
.
Type
=
'APPL'
...
...
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