# HG changeset patch # User maugustin # Date 1309956914 18000 # Node ID 9aed3bfc92d6f98379f58704de910e590a4ab4f1 # Parent 3b613d32ef11d50c595332f78a0dcd1da9fb1e86 authormap: expand environment variables when evaluating map path diff --git a/hgsubversion/maps.py b/hgsubversion/maps.py --- a/hgsubversion/maps.py +++ b/hgsubversion/maps.py @@ -34,6 +34,8 @@ class AuthorMap(dict): def load(self, path): ''' Load mappings from a file at the specified path. ''' + + path = os.path.expandvars(path) if not os.path.exists(path): return