mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +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:
|
with open(fname) as f:
|
||||||
general, pairs, storages = read_config(f)
|
general, pairs, storages = read_config(f)
|
||||||
_validate_general_section(general)
|
_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:
|
except Exception as e:
|
||||||
raise CliError('Error during reading config {}: {}'
|
raise CliError('Error during reading config {}: {}'
|
||||||
.format(fname, e))
|
.format(fname, e))
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ password_key_prefix = 'vdirsyncer:'
|
||||||
|
|
||||||
def expand_path(p):
|
def expand_path(p):
|
||||||
p = os.path.expanduser(p)
|
p = os.path.expanduser(p)
|
||||||
p = os.path.abspath(p)
|
p = os.path.normpath(p)
|
||||||
return p
|
return p
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue