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

Lines changed: 1 addition & 2 deletions
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)