(file)
| 18 | |
| 19 | |
| 20 | def read_settings(file): |
| 21 | # File exists |
| 22 | if not os.path.isfile(file): |
| 23 | logger.critical( |
| 24 | '[CONFIG] Settings file file not found: {}'.format(file)) |
| 25 | sys.exit() |
| 26 | settings = configparser.ConfigParser() |
| 27 | settings.read(file) |
| 28 | return settings |
| 29 | |
| 30 | |
| 31 | def plex_authenticate(): |