mesos/spark — pull request #858 by ianbuss (2013-08-23 08:36:18+00:00)
Title: Ensure that scripts correctly follow symbolic links to determine the framework directory

Often it may be desirable for packaged versions to create symbolic links to the executor scripts. As they currently stand, the scripts will mis-identify the framework directory using `dirname` to be the directory in which the symlink resides.

The pull request uses a python one-liner as `readlink`'s behaviour can be platform dependent.