Skip to content

Fixes installer for both Python 2.7 and 3.x. - #718

Merged
aaltat merged 1 commit into
robotframework:masterfrom
HelioGuilherme66:fix_installer
Jan 13, 2017
Merged

aaltat merged 1 commit into
robotframework:masterfrom
HelioGuilherme66:fix_installer

Conversation

@HelioGuilherme66

Copy link
Copy Markdown
Member

Replaces problematic execfile by exec.

@pekkaklarck

Copy link
Copy Markdown
Member

Why would be compile needed here? AFAIK this ought to be enough:

with open(join(CURDIR, 'src', 'Selenium2Library', 'version.py')) as f:
    exec(f.read())

@HelioGuilherme66

Copy link
Copy Markdown
Member Author

Modified code as @pekkaklarck suggestion.

@aaltat

aaltat commented Jan 11, 2017

Copy link
Copy Markdown
Contributor

Would you mind rebase with the current master. I would like to see that the change works with Python 2 and 3 with Travis.

@HelioGuilherme66

Copy link
Copy Markdown
Member Author

Rebased (tests pass except on python 3.3).

@aaltat
aaltat merged commit 68c4ed7 into robotframework:master Jan 13, 2017
@HelioGuilherme66
HelioGuilherme66 deleted the fix_installer branch January 14, 2017 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants