Do those snippets crash when run by themselves, from the Script Editor? The 
first one seems to work fine in Maya 2013
Does it completely take down Maya? If so, is the error you are seeing the 
process where it is writing out the temporary scene file before crashing the 
app?


On Aug 15, 2013, at 7:37 PM, Panupat Chongstitwattana wrote:

> Hi.
> 
> I have a PyQt script that worked without any problem in Maya 2011-2012. 
> However, it's crashing Maya 2014 when executing these 2 commands.
> 
> first one is basically opening Quicktime Player
> 
> if os.path.exists(QT) and os.path.exists(item):
>             subprocess.Popen([QT, item])
> 
> second one is deleting file
> 
> if os.path.exists(item):
>             try:
>                 os.remove(item)
>             except:
>                 QtGui.QMessageBox.about( # some error messages )
> 
> When the crash happens, script editor shows this message. 
> 
> file -type MayaAscii
> // C:/....(full path to file)
> 
> Not very useful as I'm not calling cmds.file at all... What should I check? 
> Any help appreciate.
> 
> Thanks!
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to