Reputation: 2819
I've been playing around with Command Line Tools in Xcode and I have stumbled upon something that I have no clue how to handle.
If I build my tool, and put the executable on the desktop, is it possible to run the executable and have the output be the directory that 'self' is in? Meaning, can I log 'Hey I am in: /Users/me/Desktop'?
And then if I were to move that file elsewhere, have that change?
Is there some sort of environment variable I could use for this?
Thanks!
Upvotes: 1
Views: 66