mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
Fix Python string formatting
This commit is contained in:
parent
60e5e213fd
commit
d4a966c7c4
@ -18,7 +18,7 @@ def execute(cmd, shell=False):
|
||||
log.info('Executing: ' + ' '.join(cmd))
|
||||
retcode = subprocess.call(cmd, shell=shell)
|
||||
if retcode < 0:
|
||||
raise Fail("Child was terminated by signal:" %s -retcode)
|
||||
raise Fail("Child was terminated by signal: %s" % -retcode)
|
||||
elif retcode > 0:
|
||||
raise Fail("Child returned: %s" % retcode)
|
||||
except OSError as e:
|
||||
|
@ -14,7 +14,7 @@ def execute(cmd, shell=False):
|
||||
log.info("Executing: %s" % cmd)
|
||||
retcode = subprocess.call(cmd, shell=shell)
|
||||
if retcode < 0:
|
||||
raise Fail("Child was terminated by signal:" %s -retcode)
|
||||
raise Fail("Child was terminated by signal: %s" % -retcode)
|
||||
elif retcode > 0:
|
||||
raise Fail("Child returned: %s" % retcode)
|
||||
except OSError as e:
|
||||
@ -159,7 +159,7 @@ class Builder:
|
||||
if flags:
|
||||
cmd += ["-DCMAKE_C_FLAGS='%s'" % flags,
|
||||
"-DCMAKE_CXX_FLAGS='%s'" % flags]
|
||||
return cmd;
|
||||
return cmd
|
||||
|
||||
def get_build_flags(self):
|
||||
flags = ""
|
||||
@ -235,7 +235,7 @@ if __name__ == "__main__":
|
||||
builder.config()
|
||||
|
||||
if args.config_only:
|
||||
sys.exit(0);
|
||||
sys.exit(0)
|
||||
|
||||
log.info("=====")
|
||||
log.info("===== Building OpenCV.js in %s", "asm.js" if not args.build_wasm else "wasm")
|
||||
|
Loading…
Reference in New Issue
Block a user