Automatically scan when running
This commit is contained in:
parent
362c109654
commit
0a5d2aacd6
|
@ -163,6 +163,8 @@ if __name__ == '__main__':
|
||||||
subdirs.remove(os.path.basename(os.path.abspath('.')))
|
subdirs.remove(os.path.basename(os.path.abspath('.')))
|
||||||
#os.chdir('..')
|
#os.chdir('..')
|
||||||
scaffolds = [BlogScaffold(os.path.join('..', sd)) for sd in subdirs]
|
scaffolds = [BlogScaffold(os.path.join('..', sd)) for sd in subdirs]
|
||||||
|
for s in scaffolds:
|
||||||
|
s.scan()
|
||||||
|
|
||||||
scaffolds.sort(key = lambda s: s.blog_images[-1], reverse=True)
|
scaffolds.sort(key = lambda s: s.blog_images[-1], reverse=True)
|
||||||
for s in scaffolds:
|
for s in scaffolds:
|
||||||
|
|
Loading…
Reference in New Issue