titoBouzout/BufferScroll — pull request #1 by laughedelic (2012-10-02 12:49:51+00:00)
Title: Fix for the case if sublime.packages_path() is a symlink

If my Packages folder is a symlink somewhere outside (e.g. Dropbox), `../` goes up and there is no Settings folder.

As it was:
```python
>>> sublime.packages_path() + '/../'
u'/Users/laughedelic/Library/Application Support/Sublime Text 2/Packages/../'
>>> os.path.realpath( sublime.packages_path() + '/../' )
u'/Users/laughedelic/Dropbox/Sublime Text 2/'
```
— no Settings folder there!

As it is with this commit:
```python
>>> os.path.dirname( sublime.packages_path() )
u'/Users/laughedelic/Library/Application Support/Sublime Text 2/'
>>> os.path.realpath( os.path.dirname(sublime.packages_path()) )
u'/Users/laughedelic/Library/Application Support/Sublime Text 2/'
```
— ook!