Download lib/python3.11/site-packages/cv2/load_config_py3.py from michaelu0826/phantom_env: direct link, hf CLI and curl.
- Browser
- Download file 262 Bytes
-
https://huggingface.co/datasets/michaelu0826/phantom_env/resolve/main/lib/python3.11/site-packages/cv2/load_config_py3.py
- Command line
-
hf download hf://datasets/michaelu0826/phantom_env/lib/python3.11/site-packages/cv2/load_config_py3.py
-
curl -L -o load_config_py3.py https://huggingface.co/datasets/michaelu0826/phantom_env/resolve/main/lib/python3.11/site-packages/cv2/load_config_py3.py
262 Bytes
| # 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) | |