Closed jose1711 closed 9 months ago
In general, I'd say I should improve working with paths by using path library more actively instead of just string everywhere. I think path lib is able to understand path in different OS with different conventions.
I think I fixed it in e88d9a53d0094e639128e244500299062e4eeb24 but it requires some testing, please check if it works for you.
Thank you, that fixes it but I think the initial config.ini
should now also contain ~
instead of /home/user
.
By default, I'd prefer a full system path because the ~ expansion only works in unix via $HOME variable. Not sure what would happen in Windows and what's considered home there.
The expansion also works on Windows:
import os
os.path.expanduser(`~')
# 'C:\\Users\\username'
os.path.expanduser(`~otheruser')
# 'C:\\Users\\otheruser'
Okay, with 78913c4d4ecd55e76232fab223114e94a18ea000 it is shortened by default. Although I didn't test on Windows yet.
It is a common practice to expand tilde in paths.
Calcure
does not do that and a user need to specify full path to a file/directory each time.