KrySA » Utils

A bunch of useful functions separated from the source.

utils.create_bind(path)[source]

Create a partial for opening a file in system’s default program for such file extensions.

New in version 0.5.0.

utils.isimage(image)[source]

Compare a file from path with the explicitly listed extensions for images: [‘.png’, ‘.jpg’, ‘.gif’, ‘.tiff’].

Returns:boolean

New in version 0.5.0.