summaryrefslogtreecommitdiff
path: root/test/bayer-format.cpp
diff options
context:
space:
mode:
authorNaushir Patuck <naush@raspberrypi.com>2021-11-01 09:15:02 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2021-11-02 12:08:44 +0000
commit9e3470ad3e4f03364c8160917117d62fde5a7d88 (patch)
treea8635fa7d4708cb9b0bc4fa44f0ae565d9a67ee4 /test/bayer-format.cpp
parent264a673d287c3dafac590ac8f5ac9472d51fa04b (opt">= 'missing' elif os.path.islink(path_entry): desc = 'link -> %s' % os.path.realpath(path_entry) elif os.path.isfile(path_entry): desc = 'file' elif os.path.isdir(path_entry): desc = 'dir' print(' sys.path[%d]: %s (%s)' % (path_index, path_entry, desc)) real_path_entry = os.path.realpath(path_entry) if (path_entry.endswith(os.path.join('lib', 'python2.7')) and os.path.isdir(real_path_entry)): encodings_dir = os.path.realpath( os.path.join(real_path_entry, 'encodings')) if os.path.exists(encodings_dir): if os.path.isdir(encodings_dir): print(' %s contents: %s' % (encodings_dir, str(os.listdir(encodings_dir)))) else: print(' %s exists but is not a directory' % encodings_dir) else: print(' %s missing' % encodings_dir) raise