Kaydet (Commit) 29a3355a authored tarafından Jack Jansen's avatar Jack Jansen

Added macostools.touch() calls to inform the finder of our changes.

üst 57d53a90
......@@ -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
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment