mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 18:53:21 +01:00
[postprocessor:exec] support tilde expansion for 'command'
https://github.com/mikf/gallery-dl/issues/146#issuecomment-1544733532
This commit is contained in:
parent
2e6cea95db
commit
790dd365e1
@ -11,6 +11,7 @@
|
||||
from .common import PostProcessor
|
||||
from .. import util, formatter
|
||||
import subprocess
|
||||
import os
|
||||
|
||||
|
||||
if util.WINDOWS:
|
||||
@ -60,6 +61,7 @@ class ExecPP(PostProcessor):
|
||||
kwdict["_path"] = pathfmt.realpath
|
||||
|
||||
args = [arg.format_map(kwdict) for arg in self.args]
|
||||
args[0] = os.path.expanduser(args[0])
|
||||
self._exec(args, False)
|
||||
|
||||
if archive:
|
||||
|
Loading…
Reference in New Issue
Block a user