Merge pull request #346 from CrynTox/dev

fix: allow relative paths in inputs
This commit is contained in:
tecnovert
2025-08-06 17:32:56 +00:00
committed by GitHub
2 changed files with 6 additions and 4 deletions

View File

@@ -2352,10 +2352,10 @@ def main():
continue
if len(s) == 2:
if name == "datadir":
data_dir = os.path.expanduser(s[1].strip('"'))
data_dir = os.path.abspath(os.path.expanduser(s[1].strip('"')))
continue
if name == "bindir":
bin_dir = os.path.expanduser(s[1].strip('"'))
bin_dir = os.path.abspath(os.path.expanduser(s[1].strip('"')))
continue
if name == "portoffset":
port_offset = int(s[1])
@@ -2412,7 +2412,9 @@ def main():
extra_opts["walletrestoretime"] = int(s[1])
continue
if name == "keysdirpath":
extra_opts["keysdirpath"] = os.path.expanduser(s[1].strip('"'))
extra_opts["keysdirpath"] = os.path.abspath(
os.path.expanduser(s[1].strip('"'))
)
continue
if name == "trustremotenode":
extra_opts["trust_remote_node"] = toBool(s[1])