Content-Length: 277792 | pFad | http://github.com/opencv/opencv-python/commit/5633cf319efadb628e8369b48834d74491c10b1a

68 Removed unused lines · opencv/opencv-python@5633cf3 · GitHub
Skip to content

Commit 5633cf3

Browse files
committed
Removed unused lines
1 parent df365e5 commit 5633cf3

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

setup.py

-15
Original file line numberDiff line numberDiff line change
@@ -374,21 +374,6 @@ def _classify_installed_files_override(
374374

375375
print("Copying files from CMake output")
376376

377-
# lines for a proper work using pylint and an autocomplete in IDE
378-
with open(os.path.join(cmake_install_dir, "python", "cv2", "__init__.py"), 'r') as opencv_init:
379-
opencv_init_lines = opencv_init.readlines()
380-
extra_imports = ('\nfrom .cv2 import *\nfrom .cv2 import _registerMatType\nfrom . import mat_wrapper\nfrom . import gapi'
381-
'\nfrom . import misc\nfrom . import utils\nfrom . import data\nfrom . import version\n')
382-
free_line_after_imports = 6
383-
opencv_init_lines.insert(free_line_after_imports, extra_imports)
384-
opencv_init_data = ""
385-
for line in opencv_init_lines:
386-
opencv_init_replacement = line.replace('importlib.import_module("cv2")', 'importlib.import_module("cv2.cv2")')
387-
opencv_init_data = opencv_init_data + opencv_init_replacement
388-
389-
with open(os.path.join(cmake_install_dir, "python", "cv2", "__init__.py"), 'w') as opencv_final_init:
390-
opencv_final_init.write(opencv_init_data)
391-
392377
# add lines from the old __init__.py file to the config file
393378
with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'scripts', '__init__.py'), 'r') as custom_init:
394379
custom_init_data = custom_init.read()

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/opencv/opencv-python/commit/5633cf319efadb628e8369b48834d74491c10b1a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy