[racket] Behavior of file-exists? and directory-list
Oh! I just remembered that we recently patch Racket with Racket blinders so
that it doesn't acknowledge the existence of any language not implemented a
Racket macro. I think you're just out of luck unless you want to downgrade.
Jay
On Thu, Dec 6, 2012 at 4:22 PM, Tim Nelson <tbnelson at gmail.com> wrote:
> Thanks for the hint Danny. I didn't know about that function... but I'm
> sorry to say that
>
> > (find-executable-path "java.exe")
> #f
>
> whereas from cmd:
> > where java
> C:\Windows\System32\java.exe
>
> so the command line knows about it, and I can use it, but it is concealed
> from Racket, even via find-executable-path. That's probably a more concise
> statement of my problem!
>
> - T
>
> On Thu, Dec 6, 2012 at 6:15 PM, Danny Yoo <dyoo at hashcollision.org> wrote:
>
>>
>> One of my Racket projects scans the PATH directories to locate
>>> the Java executable, if one is installed.
>>>
>>
>> If you're searching through PATHt, you should be able to use
>> find-executable-path.
>>
>>
>> http://docs.racket-lang.org/reference/Filesystem.html#(def._((lib._racket/private/misc..rkt)._find-executable-path))
>>
>>
>> For example:
>>
>> (find-executable-path "java.exe")
>>
>>
>
> ____________________
> Racket Users list:
> http://lists.racket-lang.org/users
>
>
--
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://faculty.cs.byu.edu/~jay
"The glory of God is Intelligence" - D&C 93
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20121206/835f7d74/attachment-0001.html>