[plt-scheme] behavior of (current-directory) OSX

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Mon Mar 2 13:03:41 EST 2009

There are lots of ways to access various places in teh filesystem
relative to your program. current-directory is, indeed, the
current-directory where your program is running. If you want something
relative to the location of the source files, you might look at
define-runtime-path.

Robby

On Mon, Mar 2, 2009 at 11:53 AM, Jesus Boadas <jboadas at gmail.com> wrote:
> Yes you are right this is osx normal behavior
>
> I need the current path to get references to resources. Any ideas for other
> way to make this work
>
>
>
>
>
> 2009/3/2 Thomas Chust <chust at web.de>
>>
>> 2009-03-02 Jesus Boadas <jboadas at gmail.com>:
>> > I created this little program
>> >
>> > (format (path->string (current-directory)))
>> >
>> > Compiled it and create stand-alone executable.
>> > Then under command line it works well but If I create a Mac .app always
>> > return "/" no matters where I run it.
>> > [...]
>>
>> Hello,
>>
>> if you run it through LaunchServices, ie. from the Finder, Dock or
>> using the open command line utility, then that's the normal behaviour
>> for any MacOS X application, I think.
>>
>> cu,
>> Thomas
>>
>>
>> --
>> When C++ is your hammer, every problem looks like your thumb.
>
>
>
> --
> Jesus Boadas
> jboadas at gmail.com
>
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
>


Posted on the users mailing list.