Browse Source

fixed dumb bug concerning the __ignore__ file

master
Raphael Roberts 7 years ago
parent
commit
0c7054c537
  1. 1
      ext_open/searcher.py
  2. 6
      ext_open/update.py

1
ext_open/searcher.py

@ -62,6 +62,7 @@ class Searcher:
args = ['python',UPDATE_PY,self.ext]
if update_mtimes:
args.append('-m')
# subprocess.check_output(args)
self.update_proc = subprocess.Popen(args)
def commit(self):

6
ext_open/update.py

@ -32,14 +32,14 @@ def build(after,starts):
for path in starts:
for root,dirs,files in os.walk(path,topdown=True):
try:
ignore = any('__ignore__' in files)
ignore = '__ignore__' in files
if ignore:
del dirs
dirs[:] = []
else:
for file in files:
yield os.path.join(root,file)
dirs[:] = list(filter(lambda p: osp.getmtime(osp.join(root,p)) > after,dirs))
except:
except Exception as e:
print('Error',root,sep= ': ')
def _update(ext,starts,after,do_update_mtimes = False):

Loading…
Cancel
Save