cmds.projects.CmdCreateFile: Fix double-double quotes
CmdCreateFile creates quotes in- and outside of tmpl_render(), which makes for one too many. Fix that.
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
b2f0fe2595
commit
6dfb238364
1 changed files with 2 additions and 6 deletions
|
|
@ -59,15 +59,11 @@ class CmdCreateFile(Cmd): # export
|
|||
log(WARNING, f'No project directory for module "{m}"')
|
||||
continue
|
||||
extra_paths.append(path)
|
||||
paths = ',\n'.join([f'"{path}"' for path in extra_paths])
|
||||
values: ListDict = {}
|
||||
kwargs = {
|
||||
'extra_paths': paths,
|
||||
values: ListDict = {
|
||||
'extra_paths': extra_paths,
|
||||
}
|
||||
self.__update_dict(values, extra_fields)
|
||||
self.__update_dict(values, kwargs.items())
|
||||
|
||||
kwargs.update(extra_fields)
|
||||
return tmpl_render(
|
||||
'pyrightconfig.json', values, li_quote = True, li_delimiter = ',\n'
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue