]> granicus.if.org Git - python/commitdiff
Added macostools.touch() calls to inform the finder of our changes.
authorJack Jansen <jack.jansen@cwi.nl>
Sun, 15 Sep 1996 22:13:59 +0000 (22:13 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Sun, 15 Sep 1996 22:13:59 +0000 (22:13 +0000)
Mac/scripts/BuildApplet.py
Mac/scripts/FixCreator.py
Mac/scripts/fixfiletypes.py

index e0b58e7cb6ee0e08d0ea0c1256bc6843b430578f..a7e35f37e6b06e445ad01c58728b57dc4a088141 100644 (file)
@@ -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
 
index f5213d072ef3334358fddc3a9011aa5872dab260..b5b3a26ec76d92583119bf73329a95ae7a132050 100644 (file)
@@ -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
index c5e1e7fa0ada9b8e89cafab6f3e116c5179b9095..284b5e1234129b6af010fdfdcfc4fc54bef82256 100644 (file)
@@ -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