summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorlbriggs <lbriggs@apptio.com>2014-12-18 22:52:02 +0000
committerAnish Athalye <me@anishathalye.com>2014-12-18 20:05:03 -0500
commit285543ac6a06327a62a59d60e3bf093b951f3ab4 (patch)
treea7173046f2f34b64596099a19e9a085b4e71d652 /bin
parent992ba4a2a94c46d1b5fe14d901c1720263e17162 (diff)
Fix version check
The version checking code fails on Python 2.6 and earlier. `sys.version_info` only became a named tuple in Python 2.7. The recommended way to get the check to work in earlier versions of Python is to access it as a regular tuple.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dotbot2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/dotbot b/bin/dotbot
index 09e2d0e..e9b432b 100755
--- a/bin/dotbot
+++ b/bin/dotbot
@@ -10,7 +10,7 @@ def inject(lib_path):
sys.path.insert(0, path)
# version dependent libraries
-if sys.version_info.major >= 3:
+if sys.version_info[0] >= 3:
inject('pyyaml/lib3')
else:
inject('pyyaml/lib')