From 9088995ff99b9b893000f6602c822c25827ddf99 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Mon, 26 Feb 2018 09:14:59 +0900 Subject: [PATCH] Update documentation about install --- README.md | 17 ++++++++++++++++- bin/reverse_geolocate.py | 3 +++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2105f98..ad5a40d 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,22 @@ Reverse GeoLocate from XMP sidecar files with optional LightRoom DB read This script will update any of the Country Code, Country, State, City and Location data that is missing in sidecard files. If a Lightroom DB is set, it will read any data from the database and fill in the fields before it tries to get the location name from google with the Latitude and Longitude found in either the XMP sidecar file or the LR database. -This script used the [Python XMP Tool kit](http://python-xmp-toolkit.readthedocs.io/) +#### Installing and setting up + +The script uses the following external non defauly python libraries +* xmp toolkit +* requests + +install both with the pip3 command +``` +pip3 install requests +pip3 install python-xmp-toolkit +``` + +XMP Toolkit also needs the [Exempi Library](http://libopenraw.freedesktop.org/wiki/Exempi). This one can be install via brew or macports directly. +See more information for [Python XMP Tool kit](http://python-xmp-toolkit.readthedocs.io/) + +The scripts python3 enviroment path (#!...) needs to be set so it points to a valid python3 install. ## Command line arguments diff --git a/bin/reverse_geolocate.py b/bin/reverse_geolocate.py index 8ffe00c..8ace7eb 100755 --- a/bin/reverse_geolocate.py +++ b/bin/reverse_geolocate.py @@ -1,5 +1,8 @@ #!/opt/local/bin/python3 +# /opt is for MacPorts +# /usr is for Brew + # AUTHOR : Clemens Schwaighofer # DATE : 2018/2/20 # LICENSE: GPLv3