Skip to content
Snippets Groups Projects
Commit 9bd2fdff authored by 郭雪松 (Xuesong Guo)'s avatar 郭雪松 (Xuesong Guo) Committed by Henrik (Grubba) Grubbström
Browse files

Process.search_path() is now Win32 and AmigaOS aware.

Thanks to 郭雪松 <peterpan@wukong.com>.

Rev: lib/modules/Process.pmod:1.61
parent 6f4ed5c6
Branches
No related tags found
No related merge requests found
...@@ -291,7 +291,13 @@ string search_path(string command) ...@@ -291,7 +291,13 @@ string search_path(string command)
if (!search_path_entries) if (!search_path_entries)
{ {
#ifdef __NT__
array(string) e=replace(getenv("PATH")||"", "\\", "/")/";"-({""});
#elif defined(__amigaos__)
array(string) e=(getenv("PATH")||"")/";"-({""});
#else
array(string) e=(getenv("PATH")||"")/":"-({""}); array(string) e=(getenv("PATH")||"")/":"-({""});
#endif
multiset(string) filter=(<>); multiset(string) filter=(<>);
search_path_entries=({}); search_path_entries=({});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment