diff --git a/generate_config.py b/generate_config.py index a73d173..e6f67d3 100644 --- a/generate_config.py +++ b/generate_config.py @@ -39,6 +39,8 @@ i=i+1 # Check additional conf -for file in os.listdir("/extended_conf/"): - if file.endswith(".conf"): - print("Detected an additonal intake defined in file {}".format(file)) \ No newline at end of file +XTENDED_CONF="/extended_conf/" +if os.path.exists(XTENDED_CONF): + for file in os.listdir(XTENDED_CONF): + if file.endswith(".conf"): + print("Detected an additonal intake defined in file {}".format(file)) \ No newline at end of file