mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-11-15 01:26:40 +13:00
- Not all systems have /usr/bin/python - On those that do, it is not always python 2 - These files aren't marked executable anyway Just use "python whatever.py" via shell instead. hg-commit-id: 09184f4c838d
26 lines
625 B
Python
26 lines
625 B
Python
#author: Bryan Bishop <kanzure@gmail.com>
|
|
#date: 2012-01-13
|
|
import os
|
|
|
|
changeset_numbers = range(266, 635)
|
|
|
|
def take_snapshot_image(changeset_number):
|
|
"turn main.asm into an image at a certain version"
|
|
|
|
print "reverting main.asm to r" + str(changeset_number)
|
|
|
|
#revert the file
|
|
os.system("hg revert ../main.asm -r" + str(changeset_number))
|
|
|
|
print "generating the image.."
|
|
|
|
#draw the image
|
|
os.system("python romviz.py")
|
|
|
|
#move the file
|
|
os.system("mv test.png versions/" + str(changeset_number) + ".png")
|
|
|
|
for changeset_number in changeset_numbers:
|
|
take_snapshot_image(changeset_number)
|
|
|