Ticket #7648 (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
comment:1 Changed 7 years ago by Martyn Gigg
- Status changed from new to verify
- Resolution set to duplicate
comment:2 Changed 7 years ago by Michael Reuter
- Status changed from verify to verifying
- Tester set to Michael Reuter
Note: See
TracTickets for help on using
tickets.
Trac seems to have created 3 copies of the same ticket. Duplicate of #7646