summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-11-04 18:14:23 (GMT)
committerGuido van Rossum <guido@python.org>1991-11-04 18:14:23 (GMT)
commitb3c493cdd87b6a0f183893e3c5b71844dbb6e995 (patch)
tree0935ff66d4c40fca7ff9c7e5970c8f5eb90ce176
parent228381e0c244126d2ed561866a5086fc534c8ae0 (diff)
downloadcpython-b3c493cdd87b6a0f183893e3c5b71844dbb6e995.zip
cpython-b3c493cdd87b6a0f183893e3c5b71844dbb6e995.tar.gz
cpython-b3c493cdd87b6a0f183893e3c5b71844dbb6e995.tar.bz2
Fix third arg (audio skip).
-rwxr-xr-xDemo/sgi/video/video.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Demo/sgi/video/video.py b/Demo/sgi/video/video.py
index 7c34e7a..df74d00 100755
--- a/Demo/sgi/video/video.py
+++ b/Demo/sgi/video/video.py
@@ -95,10 +95,9 @@ def main():
af = open(audiofilename, 'r')
spkr = openspkr()
afskip = 0
- if len(sys.argv) > 3:
- afskip = eval(sys.argv[3])
- if afskip > 0:
- af.seek(afskip)
+ if args[2:]:
+ afskip = eval(args[2])
+ af.seek(afskip)
else:
af, spkr = None, None
foreground()