You could also try starting mayapy with '-v' verbose flag.

On Tue, Apr 20, 2010 at 12:56 PM, John Creson <[email protected]> wrote:

> is there a __init__.py in your 'C:/PRODUCTION/SCRIPTS/python that has
> something inside?
> or perhaps there is a userSetup.py in there that is appending that
> folder infinitely?
>
> On Tue, Apr 20, 2010 at 4:05 AM, Kevin W <[email protected]> wrote:
> > I'm trying to import some custom modules when Maya loads, but it seems
> > to keep maya from loading.
> >
> > At first I tried adding a few lines to userSetup.py
> >
> > import sys
> > sys.path.append('C:/PRODUCTION/SCRIPTS/python')
> >
> > I then tried
> > PYTHONPATH = C:\PRODUCTION\SCRIPTS\python;
> >
> > as a environmental variable in Windows 7 as well as a variable in my
> > Maya.env file.
> >
> > No matter which way, Maya doesn't finish loading (or start loading,
> > really) and I wind up killing it.
> >
> > I tried each method one at a time. I haven't hard any problems with
> > using custom paths for MEL scripts, or using environment variables to
> > use python interactively. When i run the two lines of python, I can
> > then load my modules as expected.
> >
> > Any thoughts?
> >
> > Thanks,
> >
> > Kevin
> >
> > --
> > http://groups.google.com/group/python_inside_maya
>
> --
> http://groups.google.com/group/python_inside_maya
>

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to