Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 29a3355

Browse files
committed
Added macostools.touch() calls to inform the finder of our changes.
1 parent 57d53a9 commit 29a3355

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

Mac/scripts/BuildApplet.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import MACFS
2020
import MacOS
2121
from Res import *
22+
import macostools
2223

2324
# .pyc file (and 'PYC ' resource magic number)
2425
MAGIC = imp.get_magic()
@@ -212,6 +213,7 @@ def process(template, filename, output):
212213

213214
CloseResFile(output)
214215

216+
macostools.touched(dest_fss)
215217
if DEBUG:
216218
print "Applet created:", destname
217219

Mac/scripts/FixCreator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import os
66
import macfs
77
import sys
8+
import macostools
89

910
OLD='PYTH'
1011
NEW='Pyth'
@@ -15,6 +16,7 @@ def walktree(name, change):
1516
cur_cr, cur_tp = fs.GetCreatorType()
1617
if cur_cr == OLD:
1718
fs.SetCreatorType(NEW, cur_tp)
19+
macostools.touched(fs)
1820
print 'Fixed ', name
1921
elif os.path.isdir(name):
2022
print '->', name

Mac/scripts/fixfiletypes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import os
1111
import macfs
1212
import sys
13+
import macostools
1314

1415
list = [
1516
('.py', 'Pyth', 'TEXT'),
@@ -33,6 +34,7 @@ def walktree(name, change):
3334
if curcrtp <> (cr, tp):
3435
if change:
3536
fs.SetCreatorType(cr, tp)
37+
macostools.touched(fs)
3638
print 'Fixed ', name
3739
else:
3840
print 'Wrong', curcrtp, name

0 commit comments

Comments
 (0)