tags:

views:

947

answers:

2

Hello!

Is there any way to programmatically get absolute path of executable. During execution of this executable, i mean :) Something as reading /proc/pid/* in linux for current PID

Thank you!

A: 

You might get close with NSHomeDirectory.

zoul
+3  A: 

I have no idea why you'd want to do this, but:

[[NSBundle mainBundle] executablePath];

should get you what you're after.

coob
Thanks! This is it :)
IPv6