I dont know why, but my print function in python does not work.
this is my test script:
`import maya.cmds as cmds
import sys
def todo():
sel = cmds.ls(sl=True)
sys.stdout.write('heloow')
if len(sel) == 0:
sys.exit("Not enought objects selected.")
print sel
print (sel)
print 'asd: ' + str(sel)
todo()`
I am using Maya 2019, the "sys.exit" does work, but none of the prints or sys.stdout.write functions.
Can somebody say why?