You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
434 B
Python

"""
sections defines our various config sections
"""
import pathlib
class Home:
"""
the [home] section maps files within the home directory
"""
@classmethod
def from_section(Cls, name, **section):
v = Cls()
if raw_files := section.get('files'):
v.files = filter(None, raw_files.splitlines())
else:
v.files = None
return v
def run(self):
pass