@@ -42,8 +42,10 @@ const char *get_sysimage_path(const char *libname) {
42
42
43
43
void set_depot_load_path (const char * root_dir ) {
44
44
#ifdef _WIN32
45
+ char * path_sep = ";" ;
45
46
char * julia_share_subdir = "\\share\\julia" ;
46
47
#else
48
+ char * path_sep = ":" ;
47
49
char * julia_share_subdir = "/share/julia" ;
48
50
#endif
49
51
int share_path_len = strlen (root_dir ) + strlen (julia_share_subdir ) + 1 ;
@@ -54,7 +56,7 @@ void set_depot_load_path(const char *root_dir) {
54
56
char * new_depot_path = calloc (sizeof (char ), new_depot_path_len );
55
57
if (curr_depot_path_len > 0 ) {
56
58
strcat (new_depot_path , curr_depot_path );
57
- strcat (new_depot_path , ":" );
59
+ strcat (new_depot_path , path_sep );
58
60
}
59
61
strcat (new_depot_path , root_dir );
60
62
strcat (new_depot_path , julia_share_subdir );
@@ -65,7 +67,7 @@ void set_depot_load_path(const char *root_dir) {
65
67
char * new_load_path = calloc (sizeof (char ), new_load_path_len );
66
68
if (curr_load_path_len > 0 ) {
67
69
strcat (new_load_path , curr_load_path );
68
- strcat (new_load_path , ":" );
70
+ strcat (new_load_path , path_sep );
69
71
}
70
72
strcat (new_load_path , root_dir );
71
73
strcat (new_load_path , julia_share_subdir );
0 commit comments