make_frames.html
001| from sys import argv
002| from os import path
003| from shutil import copyfile
004|
005| BasePath = r'C:\CJS\prj\Python\ws\math\mp4'
006| FilePath = path.join(BasePath, 'src')
007| CopyPath = path.join(BasePath, 'dst')
008|
009| file_to_copy = 'orbits-000.png'
010| file_pattern = 'orbits-%03d.png'
011| nbr_of_files = 24
012|
013| def fcopy (name1, name2):
014| print('copy "%s" to "%s"' % (name1, name2))
015| copyfile(name1, name2)
016|
017|
018| for fx in range(nbr_of_files):
019| fname0 = path.join(FilePath, file_to_copy)
020| fname1 = path.join(CopyPath, file_pattern % fx)
021| fcopy(fname0, fname1)
022|
023|
024|
025|