title: Get the absolute path of .app bundle in OS X using swift
body: <p>I am trying to find the path of where a simple OS X app is running from. I tried</p>
  
  <pre><code>let fileManager = NSFileManager.defaultManager()
  let path = fileManager.currentDirectoryPath
  </code></pre>
  
  <p>but <code>path</code> always has value <code>/</code>. How do I get the absolute path, such as if the <code>.app</code> is executed from <code>/Users/xxx/sandbox/sample.app</code> I expect the value <code>/Users/xxx/sandbox</code> </p>
  
  <p>is it possible?</p>