8000 Changed defining path to scripts/__init__.py file · anishdevtech/opencv-python@8599231 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8599231

Browse files
committed
Changed defining path to scripts/__init__.py file
1 parent 31dde8a commit 8599231

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,7 @@ def _classify_installed_files_override(
366366
print("Copying files from CMake output")
367367

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

0 commit comments

Comments
 (0)
0