Merge pull request #40 from xarses/fix-cli-path-bug

Fix extra 's' in template-dir so that the value can be found
This commit is contained in:
Łukasz Oleś 2015-04-16 22:47:40 +02:00
commit 0bbb208c23

View File

@ -82,7 +82,7 @@ class Cmd(object):
if args.create: if args.create:
params = {'tags': args.tags, 'id': args.id} params = {'tags': args.tags, 'id': args.id}
profile_template_path = os.path.join( profile_template_path = os.path.join(
utils.read_config()['templates-dir'], 'profile.yml' utils.read_config()['template-dir'], 'profile.yml'
) )
data = yaml.load(utils.render_template(profile_template_path, params)) data = yaml.load(utils.render_template(profile_template_path, params))
self.db.store('profiles', data) self.db.store('profiles', data)