Fix thumbnailer script
This commit is contained in:
parent
aa6c15d8d7
commit
5fe7f6bf7c
|
@ -1,11 +1,16 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import sys, zipfile, md5
|
||||
import sys, zipfile
|
||||
import getopt
|
||||
import gnomevfs
|
||||
from urlparse import urlparse
|
||||
from urlparse import unquote
|
||||
|
||||
opt,par = getopt.getopt(sys.argv[1:],'-s:')
|
||||
inpfile = gnomevfs.get_local_path_from_uri(par[0])
|
||||
uri = urlparse(par[0])
|
||||
if uri.scheme != "file":
|
||||
sys.exit(1)
|
||||
|
||||
inpfile = unquote(uri.path)
|
||||
outfile = par[1]
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue
Block a user