comparison install.py @ 447:48933cecdf7f

Add Tridactyl config.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 28 Aug 2018 22:48:06 -0700
parents edefbb8ea16a
children cc00cbbf5460
comparison
equal deleted inserted replaced
446:edefbb8ea16a 447:48933cecdf7f
247 'source "%s"' % _p('lib/mutt/mutt-colors-solarized/' 247 'source "%s"' % _p('lib/mutt/mutt-colors-solarized/'
248 'mutt-colors-solarized-dark-256.muttrc') 248 'mutt-colors-solarized-dark-256.muttrc')
249 ]) 249 ])
250 250
251 251
252 def install_tridactyl():
253 cfgname = '~/_tridactylrc' if is_windows else '~/.tridactylrc'
254 writelines(cfgname, [
255 'source %s' % _p('tridactyl/tridactylrc')
256 ])
257
258
252 def _on_error_try_make_readable(func, path, exc_info): 259 def _on_error_try_make_readable(func, path, exc_info):
253 if not os.access(path, os.W_OK): 260 if not os.access(path, os.W_OK):
254 os.chmod(path, stat.S_IWUSR) 261 os.chmod(path, stat.S_IWUSR)
255 func(path) 262 func(path)
256 else: 263 else: