mirror of
https://github.com/erkin/ponysay.git
synced 2025-03-31 16:55:27 +02:00
m bracket + syntax fix + installation error fix and verboseness
Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
parent
ec73c4dd1d
commit
49b3f80f8a
3 changed files with 13 additions and 10 deletions
|
@ -1529,9 +1529,9 @@ to your @file{~/.bashrc} file.
|
||||||
@example
|
@example
|
||||||
[[ ! "$COLORTERM" = "" ]] &&
|
[[ ! "$COLORTERM" = "" ]] &&
|
||||||
function ponysay
|
function ponysay
|
||||||
{
|
@{
|
||||||
exec ponysay "$@@" | cat | cat | cat | cat
|
exec ponysay "$@@" | cat | cat | cat | cat
|
||||||
}
|
@}
|
||||||
@end example
|
@end example
|
||||||
@end cartouche
|
@end cartouche
|
||||||
|
|
||||||
|
|
|
@ -198,7 +198,7 @@ class Ponysay():
|
||||||
|
|
||||||
|
|
||||||
def share(file):
|
def share(file):
|
||||||
return [parsefile(item) + file for item in [
|
return [(parsefile(item) + file) for item in [
|
||||||
'$XDG_DATA_HOME/ponysay/',
|
'$XDG_DATA_HOME/ponysay/',
|
||||||
'$HOME/.local/share/ponysay/',
|
'$HOME/.local/share/ponysay/',
|
||||||
'/usr/share/ponysay/',
|
'/usr/share/ponysay/',
|
||||||
|
|
17
setup.py
17
setup.py
|
@ -490,13 +490,6 @@ class Setup():
|
||||||
if fileout is not None: fileout.close()
|
if fileout is not None: fileout.close()
|
||||||
if filein is not None: filein .close()
|
if filein is not None: filein .close()
|
||||||
|
|
||||||
for sharedir in [sharedir[0] for sharedir in sharedirs]:
|
|
||||||
for sharefile in os.listdir(conf[sharedir]):
|
|
||||||
if sharefile.endswith('.pony') and (sharefile != '.pony'):
|
|
||||||
for toolcommand in ('--dimensions', '--metadata'):
|
|
||||||
Popen(['./ponysay-tool.py', toolcommand, conf[sharedir]], stdin=PIPE, stdout=PIPE, stderr=PIPE).communicate()
|
|
||||||
break
|
|
||||||
|
|
||||||
for shell in [item[0] for item in shells]:
|
for shell in [item[0] for item in shells]:
|
||||||
if conf[shell] is not None:
|
if conf[shell] is not None:
|
||||||
for command in commands:
|
for command in commands:
|
||||||
|
@ -542,6 +535,16 @@ class Setup():
|
||||||
finally:
|
finally:
|
||||||
if ponymap is not None:
|
if ponymap is not None:
|
||||||
ponymap.close()
|
ponymap.close()
|
||||||
|
|
||||||
|
for sharedir in [sharedir[0] for sharedir in sharedirs]:
|
||||||
|
if os.path.isdir(sharedir):
|
||||||
|
for sharefile in os.listdir(sharedir):
|
||||||
|
if sharefile.endswith('.pony') and (sharefile != '.pony'):
|
||||||
|
sharefile = sharedir + '/' + sharefile
|
||||||
|
for toolcommand in ('--dimensions', '--metadata'):
|
||||||
|
print('%s, %s, %s' % ('./ponysay-tool.py', toolcommand, sharefile))
|
||||||
|
Popen(['./ponysay-tool.py', toolcommand, sharefile], stdin=PIPE, stdout=PIPE, stderr=PIPE).communicate()
|
||||||
|
|
||||||
print()
|
print()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue