CLI: abspath for parameters,
+import os
import json
import subprocess
from ocrd.utils import getLogger
@@ -40,6 +41,9 @@ def run_processor(
working_dir
)
if parameter is not None:
+ if not '://' in parameter:
+ fname = os.path.abspath(parameter)
+ else:
fname = workspace.download_url(parameter)
with open(fname, 'r') as param_json_file:
parameter = json.load(param_json_file)
