mrv2: Python panel enter on Windows doesn't default to correct new lines

Issue

This is likely a Windows issue - but testing 0.8.1 I noticed that the Python panel often gave syntax errors:

image

My entry in the script field:


import mrv2
from mrv2 import annotations, cmd, math, image, io, media
from mrv2 import playlist, timeline, usd, settings

print(0)
print(1)

Would execute as:

import mrv2
from mrv2 import annotations, cmd, math, image, io, media
from mrv2 import playlist, timeline, usd, settings

print(0)print(1)

Giving:

SyntaxError: invalid syntax (<string>, line 7)

It seems that the Enter key maybe does not generate the new lines as it expects (maybe \r instead of \n?)

My keyboard locale settings on Windows 10 are set to: image

About this issue

  • Original URL
  • State: closed
  • Created 8 months ago
  • Comments: 21 (21 by maintainers)

Most upvoted comments

New beta on sourceforge. I am betting that this time it will all work. I cleaned up the code and documented the algorithm.