mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-25 05:47:59 +01:00
fix shell completion install paths
If the string "ponysay" was in the install prefix, it was replaced by the name of the command, and the prefix should not change. Fixes #223.
This commit is contained in:
parent
21395edbb4
commit
44fb0f8582
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