Skip to content

Commit 29f0466

Browse files
committed
simplify regex
1 parent 441e52c commit 29f0466

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def main():
8080
# In Windows, in python/X.Y/<arch>/; in Linux, in just python/X.Y/.
8181
# Naming conventions vary so widely between versions and OSes
8282
# had to give up on checking them.
83-
['python/([^/]+/){1,2}cv2[^/]*%(ext)s' % {'ext': re.escape(sysconfig.get_config_var('SO'))}],
83+
['python/cv2[^/]*%(ext)s' % {'ext': re.escape(sysconfig.get_config_var('SO'))}],
8484

8585
'cv2.data': [ # OPENCV_OTHER_INSTALL_PATH
8686
('etc' if os.name == 'nt' else 'share/OpenCV') +

0 commit comments

Comments
 (0)