Ready for first commit to github

This commit is contained in:
Rhet Turnbull
2019-06-16 00:09:17 -07:00
parent 6f8a5f962c
commit bf0b2424b5
4 changed files with 179 additions and 0 deletions

View File

@@ -36,6 +36,14 @@ def _check_file_exists(filename):
class PhotosDB:
def __init__(self, dbfile=None):
# Check OS version
system = platform.system()
(_, major, _) = _get_os_version()
logger.debug(system, major)
if (system != 'Darwin') or (major != '13'):
logger.warning("WARNING: This module has only been tested with MacOS 10.13: "
+ f"{system}, OS version: {major}")
# Dict with information about all photos by uuid
self._dbphotos = {}
# Dict with information about all persons/photos by uuid