File tree 1 file changed +4
-13
lines changed
1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -75,29 +75,20 @@ def set_defaults():
75
75
config = {}
76
76
77
77
if is_osx ():
78
- data_home = os .path .join (
79
- os .path .expanduser ('~' ),
80
- 'Library' ,
81
- 'autojump' ,
82
- )
78
+ data_home = os .path .join (os .path .expanduser ('~' ), 'Library' )
83
79
elif is_windows ():
84
- data_home = os .path .join (
85
- os .getenv ('APPDATA' ),
86
- 'autojump' ,
87
- )
80
+ data_home = os .getenv ('APPDATA' )
88
81
else :
89
82
data_home = os .getenv (
90
83
'XDG_DATA_HOME' ,
91
84
os .path .join (
92
85
os .path .expanduser ('~' ),
93
86
'.local' ,
94
87
'share' ,
95
- 'autojump' ,
96
88
),
97
89
)
98
-
99
- config ['data_path' ] = os .path .join (data_home , 'autojump.txt' )
100
- config ['backup_path' ] = os .path .join (data_home , 'autojump.txt.bak' )
90
+ config ['data_path' ] = os .path .join (data_home , 'autojump' , 'autojump.txt' )
91
+ config ['backup_path' ] = os .path .join (data_home , 'autojump' , 'autojump.txt.bak' )
101
92
102
93
return config
103
94
You can’t perform that action at this time.
0 commit comments