Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Langhoff <martin@laptop.org>2011-01-29 23:33:08 (GMT)
committer Martin Langhoff <martin@laptop.org>2011-01-29 23:33:08 (GMT)
commitb7c50abcbafcd9b2d65bbfcbd31b46d3741c8455 (patch)
treee45c59ce105934c3a6ed6eb87bc84aee1deb5a2a
parent0c7bdb14a6179950aba82ec79786d785ad2fdb78 (diff)
server.py: read sys.version_info in backwards compat way
major and minor keys are 2.7 onwards.
-rwxr-xr-xserver.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/server.py b/server.py
index 9393daa..e54f153 100755
--- a/server.py
+++ b/server.py
@@ -51,8 +51,8 @@ _root_path = os.path.dirname(__file__)
# linux32_27" for Linux 32bits Python 2.7
platform = "%s%s_%s%s" % (platform.system().lower(),
platform.architecture()[0][0:2],
- sys.version_info.major,
- sys.version_info.minor)
+ sys.version_info[0], # major
+ sys.version_info[1]) # minor
sys.path.append(os.path.join(_root_path, 'binarylibs', platform))