- fixed cfg file parsing for strings

- fixes in over.core.cmd
This commit is contained in:
Overwatch 2014-11-17 12:56:51 +01:00
parent e71cedf58c
commit f1ada6f32f
2 changed files with 11 additions and 3 deletions

View file

@ -17,9 +17,10 @@ prefix = textui.prefix
# --------------------------------------------------
def _parse(data, dtype):
print('### called _parse(%s, %s)' %(repr(data), repr(dtype)))
if dtype == 'str':
if data.startswith('\'') and data.endswith('\''):
value = data[1:-1].replace('\\\'', '\'')
if data.startswith('"') and data.endswith('"'):
value = data[1:-1].replace('\\"', '"')
else:
raise RuntimeError