Skip to content
Snippets Groups Projects
Commit 21442281 authored by VALLET Nathan's avatar VALLET Nathan
Browse files

change default config path

parent 8d325bd7
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,7 @@ def genere_html(liste_evenements: list[dict[str, str]], ...@@ -57,7 +57,7 @@ def genere_html(liste_evenements: list[dict[str, str]],
def main(): def main():
parser = ArgumentParser(description="obtain events feeds from RSS and compile them into a nice webpage") parser = ArgumentParser(description="obtain events feeds from RSS and compile them into a nice webpage")
parser.add_argument("-c", "--config", help="specifies a config path instead of the default config path %(default)s", default="/etc/eventswrangler.conf") parser.add_argument("-c", "--config", help="specifies a config path instead of the default config path %(default)s", default="/etc/eventswrangler.yml")
configpath = parser.parse_args().config configpath = parser.parse_args().config
with open(configpath) as file: with open(configpath) as file:
conf = yaml.safe_load(file) conf = yaml.safe_load(file)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment