mirror of
https://github.com/ParticulateFlow/LPP.git
synced 2025-12-08 06:37:46 +00:00
Committer: ckloss <ckloss@fluid38.(none)>
On branch master Initial commit for lpp, version 2011-10-11
This commit is contained in:
20
scripts/iview.py
Normal file
20
scripts/iview.py
Normal file
@ -0,0 +1,20 @@
|
||||
#!/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:]))
|
||||
Reference in New Issue
Block a user