Hello,

I am making pp par programs on Darwin. I've gotten everything to work, but
have a problem. When I launch the executable, no matter where I launch it
from, it changes directories to the User's root directory. This happens on
multiple machines.

For this program, I need to launch it from different places and do things to
the files at those locations, such as glob and process.

Is there a way to keep it in the launching directory? If not, is there a way
for my program to know the directory it started in, so I can chdir back
there? I've tried ARGV but that's empty. When the program first launches, it
shows the starting directory with an "exit", like so:

"/Users/josh/Desktop/miditool/miditool; exit"

So, it seems like it should know where it came from. But as the program
runs, it's apparent it's moved up to /users/josh.

This is 0.86, on Mac OS X 10.3.7

Many thanks.

Joshua


Reply via email to