use the command line for the file name rather than hardcoding it

This commit is contained in:
Bill Currie 2003-03-11 02:55:22 +00:00
parent 2aee6a7734
commit 63edd414d6

View file

@ -1,7 +1,8 @@
from struct import *
from pprint import *
import sys
model = open("flame.mdl","rb").read()
model = open(sys.argv[1],"rb").read()
m = unpack ("4s l 3f 3f f 3f i i i i i i i i f", model[:84])
m = m[0:2] + (m[2:5],) + (m[5:8],) + m[8:9] + (m[9:12],) + m[12:21]
model = model[84:]