Skip to content

Commit 68c4ed7

Browse files
HelioGuilherme66aaltat
authored andcommitted
Fixes installer for both Python 2.7 and 3.x. (robotframework#718)
Simplifies exec version.py.
1 parent 7a8d14a commit 68c4ed7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎setup.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
CURDIR = dirname(abspath(__file__))
88

9-
execfile(join(CURDIR, 'src', 'Selenium2Library', 'version.py'))
9+
with open(join(CURDIR, 'src', 'Selenium2Library', 'version.py')) as f:
10+
exec(f.read())
1011

1112
DESCRIPTION = """
1213
Selenium2Library is a web testing library for Robot Framework

0 commit comments

Comments
 (0)