Skip to content

Commit

Permalink
Allow setting hashmap toml values in ./configure
Browse files Browse the repository at this point in the history
  • Loading branch information
KittyBorgX committed Mar 2, 2023
1 parent 864b625 commit a6580ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bootstrap/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,8 @@ def to_toml(value):
return value
else:
return "'" + value + "'"
elif isinstance(value, dict):
return "{" + ", ".join(map(lambda a: "{} = {}".format(to_toml(a[0]), to_toml(a[1])), value.items())) + "}"
else:
raise RuntimeError('no toml')

Expand Down

0 comments on commit a6580ba

Please sign in to comment.