color_trace icon indicating copy to clipboard operation
color_trace copied to clipboard

Long path not possible until this fix is added.

Open targor opened this issue 5 years ago • 0 comments

When providing an output path without quotes, the program does not recognize the argument. When quotes are provided when the output file is saved in the wrong directory, because the quotes are interpreted as part of the path.

I am not a python expert but this way it works just fine

Add this code to the main function ( def main(args=None): ) to line 883:

output_pattern =output_pattern.strip('\"\'')
inputs_outputs = zip(*get_inputs_outputs(args.input, output_pattern))

This will let the script work with long paths quoted.

After that the script can be called with quotes without problems e.g. : python3 color_trace_multi.py -i "path1" -o "path2" -q as -c 32 -s

targor avatar Jan 12 '19 22:01 targor