Content-Length: 250428 | pFad | http://github.com/opencv/opencv-python/commit/9a7af2aa4090d40a981cf91ef2b3c4c363e356de

A2 Changed defining path to scripts/__init__.py file · opencv/opencv-python@9a7af2a · GitHub
Skip to content

Commit 9a7af2a

Browse files
committed
Changed defining path to scripts/__init__.py file
1 parent 810ca4e commit 9a7af2a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

setup.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,7 @@ def _classify_installed_files_override(
378378
print("Copying files from CMake output")
379379

380380
# add lines from the old __init__.py file to the config file
381-
with open('%s/scripts/__init__.py'
382-
% os.path.split(os.path.abspath(__file__))[0], 'r') as custom_init:
381+
with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'scripts', '__init__.py'), 'r') as custom_init:
383382
custom_init_data = custom_init.read()
384383
with open('%spython/cv2/config-%s.%s.py'
385384
% (cmake_install_dir, sys.version_info[0], sys.version_info[1]), 'w') as opencv_init_config:

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/9a7af2aa4090d40a981cf91ef2b3c4c363e356de

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy