anishathalye/dotbot — pull request #7 by jaxxstorm (2014-12-18 22:54:25+00:00)
Title: Fixing version check

On python 2.6, the version check fails because of the following error:

```
Traceback (most recent call last):
File "/home/lbriggs/dotfiles/dotbot/bin/dotbot", line 13, in
if sys.version_info.major >= 3:
AttributeError: 'tuple' object has no attribute 'major'
```

It seems that according to many python apps I've found such as here:
https://github.com/piskvorky/gensim/commit/472a3d11a0fc240d4756bd1daa08d2957b897ba4
and here:
https://github.com/astraw/stdeb/issues/79

A better way to figure out the version is to use the function in this PR.

This gets everything working nicely