mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-22 04:27:58 +01:00
m setup fix
Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
parent
4a7c7279f5
commit
3c583c278f
1 changed files with 8 additions and 8 deletions
16
setup.py
16
setup.py
|
@ -16,12 +16,12 @@ PONYSAY_VERSION = '3.0alpha'
|
|||
manpages = [('en', 'English'), # must be first
|
||||
('es', 'Spanish')]
|
||||
|
||||
sharedirs = [('ponies', 'xterm ponies', 'PONYDIR'), # must be first
|
||||
('ttyponies', 'tty ponies', 'TTYPONYDIR'),
|
||||
('extraponies', 'extra xterm ponies', 'XPONYDIR'),
|
||||
('extrattyponies', 'extra tty ponies', 'XTTYPONYDIR'),
|
||||
('quotes', 'pony quotes', 'QUOTEDIR'),
|
||||
('balloons', 'balloon styles', 'BALLOONDIR')]
|
||||
sharedirs = [('ponies', 'xterm ponies', 'PONYDIR', True), # must be first
|
||||
('ttyponies', 'tty ponies', 'TTYPONYDIR', True),
|
||||
('extraponies', 'extra xterm ponies', 'XPONYDIR', True),
|
||||
('extrattyponies', 'extra tty ponies', 'XTTYPONYDIR', True),
|
||||
('quotes', 'pony quotes', 'QUOTEDIR', False),
|
||||
('balloons', 'balloon styles', 'BALLOONDIR', False)]
|
||||
|
||||
sharefiles = [('ucs', 'ucsmap')]
|
||||
|
||||
|
@ -557,8 +557,8 @@ class Setup():
|
|||
if ponymap is not None:
|
||||
ponymap.close()
|
||||
|
||||
for sharedir in [sharedir[0] for sharedir in sharedirs]: # TODO make this an opt-out option
|
||||
if os.path.isdir(sharedir):
|
||||
for (sharedir, hasponies) in [(sharedir[0], sharedir[3]) for sharedir in sharedirs]: # TODO make this an opt-out option
|
||||
if hasponies and os.path.isdir(sharedir):
|
||||
for toolcommand in ('--dimensions', '--metadata'):
|
||||
if not self.free:
|
||||
print('%s, %s, %s' % ('./src/ponysay-tool.py', toolcommand, sharedir))
|
||||
|
|
Loading…
Reference in a new issue