Ticket #7647 (closed: duplicate)
RunPythonScript.py algorithm line ending issue
Reported by: | Owen Arnold | Owned by: | Martyn Gigg |
---|---|---|---|
Priority: | critical | Milestone: | Release 3.0 |
Component: | Framework | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Michael Reuter |
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.
Trac seems to have created 3 copies of the same ticket. Duplicate of #7646