2011-10-31 14:53:07 -04:00
|
|
|
! Copyright (C) 2011 Doug Coleman.
|
|
|
|
! See http://factorcode.org/license.txt for BSD license.
|
2015-06-01 17:59:36 -04:00
|
|
|
USING: environment fry io.directories.search.windows io.files
|
|
|
|
io.pathnames io.standard-paths kernel sequences splitting
|
|
|
|
system unicode.case ;
|
2011-10-31 14:53:07 -04:00
|
|
|
IN: io.standard-paths.windows
|
|
|
|
|
|
|
|
M: windows find-in-applications
|
2015-06-01 17:26:27 -04:00
|
|
|
'[ [ >lower _ tail? ] find-in-program-files ] map-find drop ;
|
2011-10-31 14:53:07 -04:00
|
|
|
|
2015-06-01 17:57:47 -04:00
|
|
|
M: windows find-in-path*
|
2015-06-01 17:59:36 -04:00
|
|
|
[ "PATH" os-env ";" split ] dip
|
|
|
|
'[ _ append-path exists? ] find nip ;
|