Closed jerrosenberg closed 3 years ago
Are you missing a ../
? One to Meros, one to src, one to local, one to usr. That ends up as /usr/var/local/Meros
(resolved relative), no?
No, my working directory is /usr/local/bin/meros/
. The issue is not for running with the relative path. It's failing on the absolute path.
The culprit is here I believe: https://github.com/MerosCrypto/Meros/blob/master/src/objects/ConfigObj.nim#L307-L309
For an absolute path the first segment of the split is empty string.
Got it. I was confused about your working directory so I just wanted to rule that out.
Good catch :) Thanks for doing my work for me. I'll push out a fix before the net today.
@jerrosenberg Fixed! Thank you again for reporting this.
Running:
./Meros --data-dir /var/local/Meros
Results in:
Running this works fine:
./Meros --data-dir "../../../../var/local/Meros"