A little help please!
Posted: Fri Dec 12, 2008 7:28 am
So im trying to figure out how to splice demos. I have read through the "Some Handy Scripts" thread and have not had any luck. Here is what i put in:
C:\Users\Michael> python c:\python30\scripts\demosplice.py c:\python30\demo1.mxd
emo c:\python30\demo2.mxdemo c:\python30\demo.mxdemo
And got this error!
Traceback (most recent call last):
File "c:\python30\scripts\demosplice.py", line 208, in <module>
splicedemos(args.filenames[0:-1], args.filenames[-1])
File "c:\python30\scripts\demosplice.py", line 116, in splicedemos
headers.append(readheader(fn))
File "c:\python30\scripts\demosplice.py", line 45, in readheader
h.fp = file(filename, "rb")
NameError: global name 'file' is not defined
Please, someone help! Anybody know what to do?
C:\Users\Michael> python c:\python30\scripts\demosplice.py c:\python30\demo1.mxd
emo c:\python30\demo2.mxdemo c:\python30\demo.mxdemo
And got this error!
Traceback (most recent call last):
File "c:\python30\scripts\demosplice.py", line 208, in <module>
splicedemos(args.filenames[0:-1], args.filenames[-1])
File "c:\python30\scripts\demosplice.py", line 116, in splicedemos
headers.append(readheader(fn))
File "c:\python30\scripts\demosplice.py", line 45, in readheader
h.fp = file(filename, "rb")
NameError: global name 'file' is not defined
Please, someone help! Anybody know what to do?