pst: new file name was appended to pffexport command instead of replacing old
This commit is contained in:
parent
f747fdd825
commit
628da0e454
@ -258,7 +258,7 @@ class PstExtractor(object):
|
|||||||
self.cmd = [self.pffexport, "-q", "-t", self.target, "-s"]
|
self.cmd = [self.pffexport, "-q", "-t", self.target, "-s"]
|
||||||
|
|
||||||
def startCmd(self, filename, ipath=None):
|
def startCmd(self, filename, ipath=None):
|
||||||
fullcmd = self.cmd
|
fullcmd = list(self.cmd)
|
||||||
if ipath:
|
if ipath:
|
||||||
# There is no way to pass an utf-8 string on the command
|
# There is no way to pass an utf-8 string on the command
|
||||||
# line on Windows. Use base64 encoding
|
# line on Windows. Use base64 encoding
|
||||||
@ -266,6 +266,7 @@ class PstExtractor(object):
|
|||||||
fullcmd += ["-p", bip.decode("UTF-8")]
|
fullcmd += ["-p", bip.decode("UTF-8")]
|
||||||
fn = _backslashize(rclexecm.subprocfile(filename))
|
fn = _backslashize(rclexecm.subprocfile(filename))
|
||||||
fullcmd += [fn,]
|
fullcmd += [fn,]
|
||||||
|
#self.em.rclog("PstExtractor: command: [%s]" % fullcmd)
|
||||||
try:
|
try:
|
||||||
self.proc = subprocess.Popen(fullcmd, stdout=subprocess.PIPE)
|
self.proc = subprocess.Popen(fullcmd, stdout=subprocess.PIPE)
|
||||||
except subprocess.CalledProcessError as err:
|
except subprocess.CalledProcessError as err:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user