mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
262 B
10 lines
262 B
6 years ago
|
# flake8: noqa
|
||
|
import os
|
||
|
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')
|
||
|
exec(code, g_vars, l_vars)
|