Skip to content

Instantly share code, notes, and snippets.

@BichengLUO
Created July 5, 2016 08:09
Show Gist options
  • Save BichengLUO/1149d63b00ff93272fc3468fe046b1cc to your computer and use it in GitHub Desktop.
Save BichengLUO/1149d63b00ff93272fc3468fe046b1cc to your computer and use it in GitHub Desktop.
A simple python script to output all the OpenCV lib files
import os
lib_dir = '.\\x64\\vc12\lib'
if __name__ == '__main__':
debug_files = []
release_files = []
for file in os.listdir(lib_dir):
if file.endswith('.lib'):
if file.endswith('d.lib'):
debug_files.append(file)
else:
release_files.append(file)
print 'Debug libs:'
for debug_lib in debug_files:
print debug_lib
print '==========================='
print 'Release libs:'
for release_lib in release_files:
print release_lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment