Skip to content

Commit f965720

Browse files
committed
Removed unused lines
1 parent 3b795ec commit f965720

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

setup.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -362,16 +362,6 @@ def _classify_installed_files_override(
362362

363363
print("Copying files from CMake output")
364364

365-
# lines for a proper work using pylint and an autocomplete in IDE
366-
with open(os.path.join(cmake_install_dir, "python", "cv2", "__init__.py"), 'r') as opencv_init:
367-
opencv_init_lines = opencv_init.readlines()
368-
extra_imports = ('\nfrom .cv2 import *\nfrom . import data\nfrom . import version\n')
369-
free_line_after_imports = 5
370-
opencv_init_lines.insert(free_line_after_imports, extra_imports)
371-
372-
with open(os.path.join(cmake_install_dir, "python", "cv2", "__init__.py"), 'w') as opencv_final_init:
373-
opencv_final_init.writelines(opencv_init_lines)
374-
375365
# add lines from the old __init__.py file to the config file
376366
with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'scripts', '__init__.py'), 'r') as custom_init:
377367
custom_init_data = custom_init.read()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy