Why won't your code work in 2.6? 2.5 should be pretty forward > compatible. > > Can't you update the little bit of incompatible code. Just importing > 'os' shouldn't error. That is pretty much the same for both versions. >
It's a bit of legacy code that I'm not very familiar with. If I can't work around it on Monday, then I'll have to dive in to get it working. Just seems like a real pain to get a 2.5 interpreter to run in a > subprocess inside 2011. > Yep. I'd start to look at your environment inside of Maya at the time you > are trying to import/run that script. > > The easiest way to do this is to debug your process live with Wing or > Eclipse. You can set a breakpoint at the first error you get and use a > debug probe to see the state or your interpreter and environment. > Examining sys.path is going to be your first priority. That's exactly it. I know what to put into the path, it's just trying to get it *IN* the path. I can't seem to do it in a python process (ie, using the env argument on the process.Popen) inside Maya, so ... I'll probably try to use an intermediate tcsh/perl/whatever wrapper. And try using a debugger -- if I'm smart enough to get one working in my environment. :^) Thanks for all of the help, guys! -- http://groups.google.com/group/python_inside_maya
