mirror of
https://github.com/python/cpython.git
synced 2025-09-12 11:46:52 +00:00
Added macostools.touch() calls to inform the finder of our changes.
This commit is contained in:
parent
57d53a90d9
commit
29a3355ab9
3 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue