Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RunPythonScript.py algorithm line ending issue #8491

Closed
OwenArnold opened this issue Aug 5, 2013 · 1 comment
Closed

RunPythonScript.py algorithm line ending issue #8491

OwenArnold opened this issue Aug 5, 2013 · 1 comment
Assignees
Labels
Framework Issues and pull requests related to components in the Framework High Priority An issue or pull request that if not addressed is severe enough to postponse a release.
Milestone

Comments

@OwenArnold
Copy link
Contributor

The algorithm does not convert the input code to unix line endings before executing the code. python exec, seems to require that the line endings are unix style. A quick attempt of replacing

code = self.getPropertyValue("Code")

with

code = self.getPropertyValue("Code")
code = code.replace('\r', '')

fixed the issue on my mac.

@OwenArnold
Copy link
Contributor Author

This issue was originally trac ticket 7646

@OwenArnold OwenArnold added High Priority An issue or pull request that if not addressed is severe enough to postponse a release. Framework Issues and pull requests related to components in the Framework labels Jun 3, 2015
@OwenArnold OwenArnold added this to the Release 3.0 milestone Jun 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Framework Issues and pull requests related to components in the Framework High Priority An issue or pull request that if not addressed is severe enough to postponse a release.
Projects
None yet
Development

No branches or pull requests

2 participants