Private GIT

Skip to content
Snippets Groups Projects
Commit 2fbf91f8 authored by miigotu's avatar miigotu
Browse files

Merge pull request #2008 from miigotu/tz-and-scene-xcept-paths

Fix scene exceptions and network timezones paths to be absolute
parents 33f51a24 7d528036
Branches
Tags
Loading
...@@ -73,9 +73,9 @@ def _update_zoneinfo(): ...@@ -73,9 +73,9 @@ def _update_zoneinfo():
global sb_timezone global sb_timezone
sb_timezone = tz.tzlocal() sb_timezone = tz.tzlocal()
# TODO `git submodule update` # TODO `git subtree pull` commands on updates
# now check if the zoneinfo needs update form the git submodule
loc_zv = 'lib/network_timezones/zoneinfo.txt' loc_zv = helpers.real_path(ek.ek(join, ek.ek(os.path.dirname, __file__), u'../lib/network_timezones/zoneinfo.txt'))
# Read version file # Read version file
try: try:
...@@ -100,7 +100,7 @@ def _update_zoneinfo(): ...@@ -100,7 +100,7 @@ def _update_zoneinfo():
return return
# now load the new zoneinfo # now load the new zoneinfo
loc_tar = u'lib/network_timezones/%s' % new_zoneinfo loc_tar = helpers.real_path(ek.ek(join, ek.ek(os.path.dirname, __file__), u'../lib/network_timezones/%s' % new_zoneinfo))
zonefile = helpers.real_path(ek.ek(join, ek.ek(os.path.dirname, lib.dateutil.zoneinfo.__file__), new_zoneinfo)) zonefile = helpers.real_path(ek.ek(join, ek.ek(os.path.dirname, lib.dateutil.zoneinfo.__file__), new_zoneinfo))
zonefile_tmp = re.sub(r'\.tar\.gz$', '.tmp', zonefile) zonefile_tmp = re.sub(r'\.tar\.gz$', '.tmp', zonefile)
...@@ -152,7 +152,7 @@ def update_network_dict(): ...@@ -152,7 +152,7 @@ def update_network_dict():
d = {} d = {}
# network timezones are stored in a git submodule # network timezones are stored in a git submodule
loc = 'lib/network_timezones/network_timezones.txt' loc = helpers.real_path(ek.ek(join, ek.ek(os.path.dirname, __file__), u'../lib/network_timezones/network_timezones.txt'))
with open(loc, 'r') as file: with open(loc, 'r') as file:
data = file.read() data = file.read()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment