mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 06:45:08 +00:00
11 lines
244 B
Python
11 lines
244 B
Python
import toml
|
|
|
|
data = toml.load("pyproject.toml")
|
|
# Modify field
|
|
data["tool"]["poetry"]["name"] = "prowler-cloud"
|
|
|
|
# To use the dump function, you need to open the file in 'write' mode
|
|
f = open("pyproject.toml", "w")
|
|
toml.dump(data, f)
|
|
f.close()
|