Add path expand for repo URL

This commit is contained in:
Iulian Onofrei 2018-01-09 17:32:10 +02:00
parent c7ba14e8ef
commit 20addf4d87

View file

@ -4,6 +4,7 @@ from __future__ import unicode_literals
import argparse
import collections
import functools
import os
from aspy.yaml import ordered_load
from identify.identify import ALL_TAGS
@ -155,6 +156,9 @@ def ordered_load_normalize_legacy_config(contents):
# TODO: Once happy, issue a deprecation warning and instructions
data = collections.OrderedDict([('repos', data)])
for repo_config in data['repos']:
repo_config['repo'] = os.path.expanduser(repo_config['repo'])
return data