deal with relative path
This commit is contained in:
parent
fd238eddb5
commit
095da90eec
1 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# vi:si:et:sw=4:sts=4:ts=4
|
# vi:si:et:sw=4:sts=4:ts=4
|
||||||
# GPL 2008
|
# GPL 2008
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
@ -27,6 +27,7 @@ if __name__ == '__main__':
|
||||||
if None in (opts.prefix, opts.input):
|
if None in (opts.prefix, opts.input):
|
||||||
parser.print_help()
|
parser.print_help()
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
opts.input = os.path.abspath(opts.input)
|
||||||
|
|
||||||
timeline = oxgst.Timeline(opts.input)
|
timeline = oxgst.Timeline(opts.input)
|
||||||
timeline.extract(opts.prefix, opts.width, opts.height)
|
timeline.extract(opts.prefix, opts.width, opts.height)
|
||||||
|
|
Loading…
Reference in a new issue