mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Allow space in filenames when converting with maketx
This commit is contained in:
parent
7ecfda3566
commit
56035a1dbb
1 changed files with 5 additions and 1 deletions
|
|
@ -75,8 +75,12 @@ def maketx(source, destination, *args):
|
|||
"--filter lanczos3",
|
||||
]
|
||||
|
||||
def _escape(path):
|
||||
# Ensure path is enclosed by quotes to allow paths with spaces
|
||||
return '"{}"'.format(path)
|
||||
|
||||
cmd.extend(args)
|
||||
cmd.extend(["-o", destination, source])
|
||||
cmd.extend(["-o", _escape(destination), _escape(source)])
|
||||
|
||||
cmd = " ".join(cmd)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue