diff --git a/.gitignore b/.gitignore index f6e3c00..878c169 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ __pycache__ result -config.ini +config_test.ini +password diff --git a/config.ini b/config.ini new file mode 100644 index 0000000..719d4cd --- /dev/null +++ b/config.ini @@ -0,0 +1,9 @@ +[calDAV] +address = localhost:5232 +username = username +password = password +; password has priority, passwordFile used as fallback +passwordFile = /path/to/password +[server] +port = 8000 + diff --git a/main.py b/main.py index 7f10277..0cb53d6 100755 --- a/main.py +++ b/main.py @@ -14,7 +14,7 @@ def parseConfig() -> tuple[str, str, str, str]: return file.readline().strip() config = configparser.ConfigParser() - # config.read("/etc/calDAVtoCSV/config.ini") + # TODO: option to call the one in test instead or specify one config.read("/etc/calDAVtoCSV/config.ini") calDavAddress = config.get("calDAV", "address")