JEC-py
·57 words·1 min
JEC-py#
Jabacat’s Easy Config
JEC-py | JEC-rs | JEC-go | JEC-c | JEC-c++ | JEC-zig | JEC-ts
API #
ConfigFile
- from_home
- exists
- remove
- create
ConfigDir
- from_home
- exists
- remove
- create
Usage #
conf_1 = ConfigFile("./config.yml")
conf_2 = ConfigFile.from_home("./config.yml")
dir_1 = ConfigDir("./config/")
dir_2 = ConfigDir.from_home("./config/")
if not dir_1.exists():
dir_1.create()
dir_1.remove()