CoCalc Public Fileswww / sga / sga / scripts / makeallpages.pyOpen in with one click!
Author: William A. Stein
1
import os
2
3
dirs = [["1", "2", "3-1", "3-2", "3-3", "4-1", "4-2"], ["4-3", "4.5", "6", "7-1", "7-2"]]
4
5
i = int(input())
6
7
for name in dirs[i]:
8
os.system("mv "+name+ " " + name + ".old")
9
os.system("mv "+name+ "tif " + name)
10
os.system("cd "+name+ "; ../scripts/process *.tif")
11
os.system("cd "+name+ "; ../scripts/makepage *.tif")
12
os.system("cd "+name+ "; ../scripts/makethumbindex *.tif > thumbindex.html")
13
os.system("cd "+name+ "; ../scripts/makenothumbindex *.tif > index.html")
14
15