Skip to content

Commit

Permalink
fixed the cfg_path
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterSG7 authored and tkuester committed Jul 30, 2023
1 parent ebead6b commit c3a594b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions taky/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ def load_config(path=None, explicit=False):

ret_config.set("taky", "root_dir", ".")
ret_config.set("dp_server", "upload_path", "./dp-user")

# Set the config path
ret_config.set("taky","cfg_path",path)

# Make directories absolute
for (sect, opt) in [
Expand Down Expand Up @@ -133,8 +136,7 @@ def load_config(path=None, explicit=False):
f_path = os.path.realpath(os.path.join(cfg_dir, f_path))
ret_config.set("ssl", f_name, f_path)

if explicit:
ret_config.set("taky", "cfg_path", path)


app_config.clear()
app_config.update(ret_config)

0 comments on commit c3a594b

Please sign in to comment.