Run python with optimization requested (command line option -O)?

Run python with optimization requested (command line option -O)?

Anonymous
Not applicable
366 Views
1 Reply
Message 1 of 2

Run python with optimization requested (command line option -O)?

Anonymous
Not applicable
Hi,

How do I tell Maya to run python with optimization requested (command line option -O). I have a number of asserts in my libs and would like them removed when the source is compiled to byte code.

Thanks,
Ryan
0 Likes
367 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
add this line to your Maya.env

PYTHONOPTIMIZE = 1
0 Likes