Skip to content

Commit 545fe24

Browse files
committed
Added comments for new changes
1 parent 6a1f61b commit 545fe24

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setup.py

+2
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ def _classify_installed_files_override(
376376

377377
print("Copying files from CMake output")
378378

379+
# need for the proper import of a package
379380
with open('%spython/cv2/__init__.py'
380381
% cmake_install_dir, 'r') as opencv_init:
381382
opencv_init_data = ""
@@ -386,6 +387,7 @@ def _classify_installed_files_override(
386387
% cmake_install_dir, 'w') as opencv_python_init:
387388
opencv_python_init.write(opencv_init_data)
388389

390+
# add lines from the old __init__.py file to the config file
389391
with open('scripts/__init__.py', 'r') as custom_init:
390392
custom_init_data = custom_init.read()
391393
with open('%spython/cv2/config-%s.%s.py'

0 commit comments

Comments
 (0)