File: whisper-merge.py

package info (click to toggle)
python-whisper 0.9.10-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 176 kB
  • sloc: python: 911; makefile: 5
file content (20 lines) | stat: -rwxr-xr-x 349 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env python

import sys
import whisper

from optparse import OptionParser

option_parser = OptionParser(
    usage='''%prog [options] from_path to_path''')

(options, args) = option_parser.parse_args()

if len(args) < 2:
  option_parser.print_usage()
  sys.exit(1)

path_from = args[0]
path_to = args[1]

whisper.merge(path_from, path_to)