Merge "Fix template folder for Debian based distros"

This commit is contained in:
Jenkins 2016-04-19 13:55:39 +00:00 committed by Gerrit Code Review
commit 21bc3c9b32
1 changed files with 2 additions and 0 deletions

View File

@ -83,6 +83,8 @@ def get_options():
# We need to support running with and without installation
if os.path.exists('templates'):
template_dir = 'templates'
elif os.path.exists('/usr/local/share/gerrit-dash-creator/templates'):
template_dir = '/usr/local/share/gerrit-dash-creator/templates'
else:
template_dir = os.path.join(sys.prefix, 'share',
'gerrit-dash-creator', 'templates')