Skip to content
Snippets Groups Projects
Commit 584f20c9 authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

fix path and file opening | refs #27883

parent 742ff730
No related branches found
No related tags found
No related merge requests found
......@@ -227,7 +227,8 @@ def set_conf(key: str, value: str, override: bool = False) -> bool:
state = False
# open conf.sh file
conf_fh = open(Path(__file__, CONF_PATH).resolve(), "w")
base_dir = Path(__file__).resolve().parent
conf_fh = open(Path(base_dir, CONF_PATH).resolve(), "w+")
# get its content
conf = conf_fh.read()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment