Code review comment for lp:~barry/quickly/585617-userdirs

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

No, just remove:
32 if os.path.exists(os.path.expanduser('~/quickly-templates')):
33 template_directories.append(os.path.expanduser('~/quickly-templates'))

And replace:
36 + user_paths = os.environ.get('QUICKLY_TEMPLATES')
37 + if user_paths is not None:

by:
user_paths = os.environ.get('QUICKLY_TEMPLATES')
user_paths = '~/quickly-templates:' + user_paths

so that the code to insert an template template path is common.

« Back to merge proposal