Coverage for pyguymer3/image/load_GPS_EXIF.py: 17%

6 statements  

« prev     ^ index     » next       coverage.py v7.9.2, created at 2025-07-08 18:47 +0000

1#!/usr/bin/env python3 

2 

3# Define function ... 

4def load_GPS_EXIF( 

5 fname, 

6 /, 

7 *, 

8 compressed = False, 

9 exiftoolPath = None, 

10 python = True, 

11 timeout = 60.0, 

12): 

13 # Import sub-functions ... 

14 from .load_GPS_EXIF1 import load_GPS_EXIF1 

15 from .load_GPS_EXIF2 import load_GPS_EXIF2 

16 

17 # Check what the user wants ... 

18 if python: 

19 # Will use the Python module "exifread" ... 

20 return load_GPS_EXIF1(fname) 

21 

22 # Will use the binary "exiftool" ... 

23 return load_GPS_EXIF2( 

24 fname, 

25 compressed = compressed, 

26 exiftoolPath = exiftoolPath, 

27 timeout = timeout, 

28 )