Skip to content

Commit

Permalink
Added comments for new changes
Browse files Browse the repository at this point in the history
  • Loading branch information
asenyaev committed Oct 15, 2021
1 parent 6a1f61b commit 545fe24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ def _classify_installed_files_override(

print("Copying files from CMake output")

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

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

0 comments on commit 545fe24

Please sign in to comment.