cs: allow Racket framework to find itself not in "CS"
The installer-signing process can copy the framework to an application directory that does not have "CS" in its name.
This commit is contained in:
parent
a9b02d5956
commit
a6cc19648f
|
@ -39,7 +39,7 @@ const char *get_framework_path() {
|
|||
for (i = 0; i < c; i++) {
|
||||
s = _dyld_get_image_name(i);
|
||||
len = strlen(s);
|
||||
if ((len > 9) && !strcmp("CS/Racket", s + len - 9)) {
|
||||
if ((len > 7) && !strcmp("/Racket", s + len - 7)) {
|
||||
char *s2;
|
||||
s2 = strdup(s);
|
||||
strcpy(s2 + len - 6, "boot");
|
||||
|
|
Loading…
Reference in New Issue
Block a user