mirror of
https://github.com/ParticulateFlow/LPP.git
synced 2025-12-08 06:37:46 +00:00
21 lines
564 B
Python
21 lines
564 B
Python
#!/usr/bin/python
|
|
|
|
# Script: iview.py
|
|
# Purpose: launch animate tool on series of image files
|
|
# Syntax: iview.py files ...
|
|
# files = one or more image files
|
|
# Example: iview.py image*png
|
|
# Author: Steve Plimpton (Sandia)
|
|
|
|
# enable script to run from Python directly w/out Pizza.py
|
|
|
|
import sys
|
|
from animate import animate
|
|
if not globals().has_key("argv"): argv = sys.argv
|
|
|
|
# main script
|
|
# this could be done with one-line alias in shell start-up file
|
|
|
|
if len(argv) < 2: raise StandardError, "Syntax: iview.py files ..."
|
|
a = animate(' '.join(argv[1:]))
|