2.0.4 quoting paths in pre-execution phase instead of config

This commit is contained in:
K4YT3X
2018-10-23 13:10:38 -04:00
parent 05e2e109c3
commit f10e17d257
2 changed files with 7 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ Last Modified: October 22, 2018
Description: This class controls waifu2x
engine
Version 2.0.3
Version 2.0.4
"""
from avalon_framework import Avalon
import subprocess
@@ -47,7 +47,7 @@ class Waifu2x:
self.print_lock.release()
# Create string for execution
execute = '{} -p {} -I png -i {} -e png -o {} -w {} -h {} -n 3 -m noise_scale -y {}'.format(
execute = '\"{}\" -p {} -I png -i \"{}\" -e png -o {} -w {} -h {} -n 3 -m noise_scale -y {}'.format(
self.waifu2x_path, self.method, folderin, folderout, width, height, self.model_type)
subprocess.call(execute)