mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-24 21:37:59 +01: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:
|
for command in commands:
|
||||||
if conf[command] is not None:
|
if conf[command] is not None:
|
||||||
src = 'completion/%s-completion.%s.install' % (shell, command)
|
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])
|
self.cp(False, src, [dest])
|
||||||
if conf['pdf'] is not None:
|
if conf['pdf'] is not None:
|
||||||
src = 'ponysay.pdf' + ('' if conf['pdf-compression'] is None else '.' + conf['pdf-compression'])
|
src = 'ponysay.pdf' + ('' if conf['pdf-compression'] is None else '.' + conf['pdf-compression'])
|
||||||
|
|
Loading…
Reference in a new issue