mirror of
https://github.com/erkin/ponysay
synced 2024-11-27 05:40:24 +00:00
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:
commit
e0a2db3247
1 changed files with 3 additions and 1 deletions
4
setup.py
4
setup.py
|
@ -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'])
|
||||
|
|
Loading…
Reference in a new issue