calendar/timezones/version.py
author tbirdbld
Mon, 14 Nov 2016 03:02:33 -0800
changeset 26104 e95d9bd956af9a8e8506d857af298d14ef1e36fc
parent 21878 ab1b861da0f2f89182e9cc8c14c77e1806eb56d6
permissions -rwxr-xr-x
No bug, Automated blocklist update from host bld-linux64-spot-340 - a=blocklist-update

#!/usr/bin/python
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import json, os.path

json_file = os.path.join(os.path.dirname(os.path.realpath(__file__)), "zones.json")

with open(json_file, "r") as fp:
    data = json.load(fp)
    print data["version"]