mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
Merge pull request #28093 from AKash-A007:fix-pytest-cov-warnings-27867
python: fix pytest-cov false warnings by compiling config scripts with full path (#27867)
This commit is contained in:
@@ -5,5 +5,5 @@ import sys
|
||||
if sys.version_info[:2] >= (3, 0):
|
||||
def exec_file_wrapper(fpath, g_vars, l_vars):
|
||||
with open(fpath) as f:
|
||||
code = compile(f.read(), os.path.basename(fpath), 'exec')
|
||||
code = compile(f.read(), fpath, 'exec')
|
||||
exec(code, g_vars, l_vars)
|
||||
|
||||
Reference in New Issue
Block a user