mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Fix bug
This commit is contained in:
parent
ce2cea130c
commit
da8bba89de
2 changed files with 5 additions and 2 deletions
|
|
@ -261,7 +261,10 @@ def load_config():
|
|||
with open(fname) as f:
|
||||
general, pairs, storages = read_config(f)
|
||||
_validate_general_section(general)
|
||||
general['status_path'] = os.path.join(fname, general['status_path'])
|
||||
general['status_path'] = os.path.join(
|
||||
os.path.dirname(fname),
|
||||
expand_path(general['status_path'])
|
||||
)
|
||||
except Exception as e:
|
||||
raise CliError('Error during reading config {}: {}'
|
||||
.format(fname, e))
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ password_key_prefix = 'vdirsyncer:'
|
|||
|
||||
def expand_path(p):
|
||||
p = os.path.expanduser(p)
|
||||
p = os.path.abspath(p)
|
||||
p = os.path.normpath(p)
|
||||
return p
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue