8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a1f61b commit 545fe24Copy full SHA for 545fe24
setup.py
@@ -376,6 +376,7 @@ def _classify_installed_files_override(
376
377
print("Copying files from CMake output")
378
379
+ # need for the proper import of a package
380
with open('%spython/cv2/__init__.py'
381
% cmake_install_dir, 'r') as opencv_init:
382
opencv_init_data = ""
@@ -386,6 +387,7 @@ def _classify_installed_files_override(
386
387
% cmake_install_dir, 'w') as opencv_python_init:
388
opencv_python_init.write(opencv_init_data)
389
390
+ # add lines from the old __init__.py file to the config file
391
with open('scripts/__init__.py', 'r') as custom_init:
392
custom_init_data = custom_init.read()
393
with open('%spython/cv2/config-%s.%s.py'
0 commit comments