From 148e9e86e91275aa14f153542e6428454b4372aa Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Mon, 3 Jun 2019 14:20:22 +0200
Subject: [PATCH] Use variable instead of headcoded string
---
wrapper/ocr | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/wrapper/ocr b/wrapper/ocr
index 177fab5..d168210 100755
--- a/wrapper/ocr
+++ b/wrapper/ocr
@@ -28,11 +28,11 @@ cmd = ['docker', 'run', '--rm', '-it', '-u', uid + ':' + gid]
if args.input_dir is not None:
host_input_dir = os.path.abspath(args.input_dir)
cmd += ['-v', host_input_dir + ':' + container_input_dir]
- remaining_args += ['-i', '/input']
+ remaining_args += ['-i', container_input_dir]
if args.output_dir is not None:
host_output_dir = os.path.abspath(args.output_dir)
cmd += ['-v', host_output_dir + ':' + container_output_dir]
- remaining_args += ['-o', '/output']
+ remaining_args += ['-o', container_output_dir]
cmd.append(container_image)
cmd += remaining_args