Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitda8bba8

Browse files
committed
Fix bug
1 parentce2cea1 commitda8bba8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

‎vdirsyncer/cli/utils.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,10 @@ def load_config():
261261
withopen(fname)asf:
262262
general,pairs,storages=read_config(f)
263263
_validate_general_section(general)
264-
general['status_path']=os.path.join(fname,general['status_path'])
264+
general['status_path']=os.path.join(
265+
os.path.dirname(fname),
266+
expand_path(general['status_path'])
267+
)
265268
exceptExceptionase:
266269
raiseCliError('Error during reading config {}: {}'
267270
.format(fname,e))

‎vdirsyncer/utils/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
defexpand_path(p):
3636
p=os.path.expanduser(p)
37-
p=os.path.abspath(p)
37+
p=os.path.normpath(p)
3838
returnp
3939

4040

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp