Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 545fe24

Browse filesBrowse files
committed
Added comments for new changes
1 parent 6a1f61b commit 545fe24
Copy full SHA for 545fe24

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed

‎setup.py

Copy file name to clipboardExpand all lines: setup.py
+2Lines changed: 2 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.