mirror of
https://github.com/opencv/opencv.git
synced 2025-06-10 19:24:07 +08:00
Pass custom config file path as absolute
This commit is contained in:
parent
7079e7ea5e
commit
a3fb64d1cd
@ -246,7 +246,7 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
log.debug("Args: %s", args)
|
log.debug("Args: %s", args)
|
||||||
|
|
||||||
os.environ["OPENCV_JS_WHITELIST"] = args.config
|
os.environ["OPENCV_JS_WHITELIST"] = os.path.abspath(args.config)
|
||||||
|
|
||||||
if 'EMMAKEN_JUST_CONFIGURE' in os.environ:
|
if 'EMMAKEN_JUST_CONFIGURE' in os.environ:
|
||||||
del os.environ['EMMAKEN_JUST_CONFIGURE'] # avoid linker errors with NODERAWFS message then using 'emcmake' launcher
|
del os.environ['EMMAKEN_JUST_CONFIGURE'] # avoid linker errors with NODERAWFS message then using 'emcmake' launcher
|
||||||
|
Loading…
Reference in New Issue
Block a user