From e76a70158c59ad579363294f5d44f1e7c08c2687 Mon Sep 17 00:00:00 2001 From: HelioGuilherme66 Date: Sun, 18 Dec 2016 10:40:09 +0000 Subject: [PATCH] Fixes installer for both Python 2.7 and 3.x. Simplifies exec version.py. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index bb4fa0795..84b8bf23b 100755 --- a/setup.py +++ b/setup.py @@ -6,7 +6,8 @@ CURDIR = dirname(abspath(__file__)) -execfile(join(CURDIR, 'src', 'Selenium2Library', 'version.py')) +with open(join(CURDIR, 'src', 'Selenium2Library', 'version.py')) as f: + exec(f.read()) DESCRIPTION = """ Selenium2Library is a web testing library for Robot Framework