mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-25 13:57:59 +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
|
manpages = [('en', 'English'), # must be first
|
||||||
('es', 'Spanish')]
|
('es', 'Spanish')]
|
||||||
|
|
||||||
sharedirs = [('ponies', 'xterm ponies', 'PONYDIR'), # must be first
|
sharedirs = [('ponies', 'xterm ponies', 'PONYDIR', True), # must be first
|
||||||
('ttyponies', 'tty ponies', 'TTYPONYDIR'),
|
('ttyponies', 'tty ponies', 'TTYPONYDIR', True),
|
||||||
('extraponies', 'extra xterm ponies', 'XPONYDIR'),
|
('extraponies', 'extra xterm ponies', 'XPONYDIR', True),
|
||||||
('extrattyponies', 'extra tty ponies', 'XTTYPONYDIR'),
|
('extrattyponies', 'extra tty ponies', 'XTTYPONYDIR', True),
|
||||||
('quotes', 'pony quotes', 'QUOTEDIR'),
|
('quotes', 'pony quotes', 'QUOTEDIR', False),
|
||||||
('balloons', 'balloon styles', 'BALLOONDIR')]
|
('balloons', 'balloon styles', 'BALLOONDIR', False)]
|
||||||
|
|
||||||
sharefiles = [('ucs', 'ucsmap')]
|
sharefiles = [('ucs', 'ucsmap')]
|
||||||
|
|
||||||
|
@ -557,8 +557,8 @@ class Setup():
|
||||||
if ponymap is not None:
|
if ponymap is not None:
|
||||||
ponymap.close()
|
ponymap.close()
|
||||||
|
|
||||||
for sharedir in [sharedir[0] for sharedir in sharedirs]: # TODO make this an opt-out option
|
for (sharedir, hasponies) in [(sharedir[0], sharedir[3]) for sharedir in sharedirs]: # TODO make this an opt-out option
|
||||||
if os.path.isdir(sharedir):
|
if hasponies and os.path.isdir(sharedir):
|
||||||
for toolcommand in ('--dimensions', '--metadata'):
|
for toolcommand in ('--dimensions', '--metadata'):
|
||||||
if not self.free:
|
if not self.free:
|
||||||
print('%s, %s, %s' % ('./src/ponysay-tool.py', toolcommand, sharedir))
|
print('%s, %s, %s' % ('./src/ponysay-tool.py', toolcommand, sharedir))
|
||||||
|
|
Loading…
Reference in a new issue