Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Giulio
purr-data
Commits
66b70d6b
Commit
66b70d6b
authored
Mar 24, 2017
by
Albert Gräf
Browse files
Need to expand ~ et al when checking for the existence of search paths. Fixes #293.
parent
47fe745a
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/s_file.c
View file @
66b70d6b
...
...
@@ -625,8 +625,14 @@ void sys_loadpreferences( void)
sprintf
(
keybuf
,
"path%d"
,
i
+
1
);
if
(
!
sys_getpreference
(
keybuf
,
prefbuf
,
MAXPDSTRING
))
break
;
else
if
(
!
check_exists
(
prefbuf
))
// AG: ignore non-existent paths
continue
;
else
{
// AG: need to expand ~ et al here
char
final_name
[
FILENAME_MAX
];
sys_expandpathelems
(
prefbuf
,
final_name
);
// AG: ignore non-existent paths
if
(
!
check_exists
(
final_name
))
continue
;
}
sys_searchpath
=
namelist_append_files
(
sys_searchpath
,
prefbuf
);
}
if
(
sys_getpreference
(
"standardpath"
,
prefbuf
,
MAXPDSTRING
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment