mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-20 02:51:52 +00:00
52d65ee4e8
Co-authored-by: sergargar <sergio@verica.io>
11 lines
231 B
Python
11 lines
231 B
Python
import toml
|
|
|
|
data = toml.load("pyproject.toml")
|
|
# Modify field
|
|
data["project"]["name"] = "prowler"
|
|
|
|
# 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()
|