summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1996-09-15 22:13:59 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1996-09-15 22:13:59 (GMT)
commit29a3355ab96a7df76adaf676e695821232d4ac5a (patch)
tree80ccbffd6912eb67906063763054781d8c2c88d8 /Mac
parent57d53a90d92e83f7d3a72d5c775be9f52aa0d89c (diff)
downloadcpython-29a3355ab96a7df76adaf676e695821232d4ac5a.zip
cpython-29a3355ab96a7df76adaf676e695821232d4ac5a.tar.gz
cpython-29a3355ab96a7df76adaf676e695821232d4ac5a.tar.bz2
Added macostools.touch() calls to inform the finder of our changes.
Diffstat (limited to 'Mac')
-rw-r--r--Mac/scripts/BuildApplet.py2
-rw-r--r--Mac/scripts/FixCreator.py2
-rw-r--r--Mac/scripts/fixfiletypes.py2
3 files changed, 6 insertions, 0 deletions
diff --git a/Mac/scripts/BuildApplet.py b/Mac/scripts/BuildApplet.py
index e0b58e7..a7e35f3 100644
--- a/Mac/scripts/BuildApplet.py
+++ b/Mac/scripts/BuildApplet.py
@@ -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
diff --git a/Mac/scripts/FixCreator.py b/Mac/scripts/FixCreator.py
index f5213d0..b5b3a26 100644
--- a/Mac/scripts/FixCreator.py
+++ b/Mac/scripts/FixCreator.py
@@ -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
diff --git a/Mac/scripts/fixfiletypes.py b/Mac/scripts/fixfiletypes.py
index c5e1e7f..284b5e1 100644
--- a/Mac/scripts/fixfiletypes.py
+++ b/Mac/scripts/fixfiletypes.py
@@ -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