librarystandards.py@109fb7cf658f
librarystandards.py
Mon, 24 Jun 2019 19:08:24 +0300
- author
- Teemu Piippo <teemu@hecknology.net>
- date
- Mon, 24 Jun 2019 19:08:24 +0300
- changeset 94
- 109fb7cf658f
- parent 89
-
d2b277cb948e
- child 96
-
70f8049623ec
- permissions
- -rw-r--r--
added a check for non-DOS line endings
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)