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
7e0d24ba
Commit
7e0d24ba
authored
Sep 15, 1996
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added macostools.touch() calls to inform the finder of our changes.
parent
a677aec0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
Mac/scripts/BuildApplet.py
Mac/scripts/BuildApplet.py
+2
-0
Mac/scripts/FixCreator.py
Mac/scripts/FixCreator.py
+2
-0
Mac/scripts/fixfiletypes.py
Mac/scripts/fixfiletypes.py
+2
-0
No files found.
Mac/scripts/BuildApplet.py
View file @
7e0d24ba
...
...
@@ -19,6 +19,7 @@ import macfs
import
MACFS
import
MacOS
from
Res
import
*
import
macostools
# .pyc file (and 'PYC ' resource magic number)
MAGIC
=
imp
.
get_magic
()
...
...
@@ -212,6 +213,7 @@ def process(template, filename, output):
CloseResFile
(
output
)
macostools
.
touched
(
dest_fss
)
if
DEBUG
:
print
"Applet created:"
,
destname
...
...
Mac/scripts/FixCreator.py
View file @
7e0d24ba
...
...
@@ -5,6 +5,7 @@
import
os
import
macfs
import
sys
import
macostools
OLD
=
'PYTH'
NEW
=
'Pyth'
...
...
@@ -15,6 +16,7 @@ def walktree(name, change):
cur_cr
,
cur_tp
=
fs
.
GetCreatorType
()
if
cur_cr
==
OLD
:
fs
.
SetCreatorType
(
NEW
,
cur_tp
)
macostools
.
touched
(
fs
)
print
'Fixed '
,
name
elif
os
.
path
.
isdir
(
name
):
print
'->'
,
name
...
...
Mac/scripts/fixfiletypes.py
View file @
7e0d24ba
...
...
@@ -10,6 +10,7 @@
import
os
import
macfs
import
sys
import
macostools
list
=
[
(
'.py'
,
'Pyth'
,
'TEXT'
),
...
...
@@ -33,6 +34,7 @@ def walktree(name, change):
if
curcrtp
<>
(
cr
,
tp
):
if
change
:
fs
.
SetCreatorType
(
cr
,
tp
)
macostools
.
touched
(
fs
)
print
'Fixed '
,
name
else
:
print
'Wrong'
,
curcrtp
,
name
...
...
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