librarystandards.py

Mon, 24 Jun 2019 17:34:30 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Mon, 24 Jun 2019 17:34:30 +0300
changeset 93
ffe05d369412
parent 89
d2b277cb948e
child 96
70f8049623ec
permissions
-rw-r--r--

don't check the category of '~'-files

from configparser import ConfigParser
from pathlib import Path
from os.path import dirname

ini_path = Path(dirname(__file__)) / 'tests' / 'library-standards.ini'
library_standards = ConfigParser()

with ini_path.open() as file:
    library_standards.read_file(file)

mercurial