From 4ff9a68a4b5833229785ee63a1a84d4ae9b9fea5 Mon Sep 17 00:00:00 2001 From: QuantumGhost Date: Sat, 23 May 2015 00:11:50 +0800 Subject: [PATCH] Use expanduser to deal with path in bower module So bower module can correctly handle path containing `~` --- packaging/language/bower.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/language/bower.py b/packaging/language/bower.py index f0dd58023ba..34284356f6e 100644 --- a/packaging/language/bower.py +++ b/packaging/language/bower.py @@ -154,7 +154,7 @@ def main(): name = module.params['name'] offline = module.params['offline'] - path = module.params['path'] + path = os.path.expanduser(module.params['path']) state = module.params['state'] version = module.params['version']