Merge pull request #225 from tdsmith/fix-shell-completion-install-paths

fix shell completion install paths

Signed-by: tdsmith
Signed-by: jristz
This commit is contained in:
Pablo Lezaeta Reyes [pˈaβ̞lo lˌe̞θaˈeta rˈejɛ] 2015-09-13 23:12:13 -03:00
commit e0a2db3247

View file

@ -606,7 +606,9 @@ class Setup():
for command in commands:
if conf[command] is not None:
src = 'completion/%s-completion.%s.install' % (shell, command)
dest = conf[shell].replace('ponysay', command)
dest = os.path.join(
os.path.dirname(conf[shell]),
os.path.basename(conf[shell]).replace('ponysay', command))
self.cp(False, src, [dest])
if conf['pdf'] is not None:
src = 'ponysay.pdf' + ('' if conf['pdf-compression'] is None else '.' + conf['pdf-compression'])