Commit ba78ef99 authored by James Harle's avatar James Harle
Browse files

Insert trailing slash on dst_dir if not present (Closes #28)

parent 247fa280
......@@ -99,6 +99,8 @@ class Setup(object):
raise
elif name_prefix == 'cn' or name_prefix == 'sn':
value = value_str.strip("'")
if name == 'dst_dir':
value = os.path.join(value, '')
elif name_prefix == 'cl':
name = key_value[0].split('(')
index = name[1].split(')')
......@@ -229,6 +231,8 @@ def _get_val(vars_dictionary, bool_vars_dictionary, line):
raise
elif name_prefix == 'cn' or name_prefix == 'sn':
vars_dictionary[name] = value.strip("'")
if name == 'dst_dir':
vars_dictionary[name] = os.path.join(vars_dictionary[name], '')
elif name_prefix == 'cl':
name = line[0].split('(')
index = name[1].split(')')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment