Message6426

Author larry
Recipients larry, pjenvey
Date 2011-03-01.23:02:05
SpamBayes Score 2.6359996e-05
Marked as misclassified No
Message-id <D2352AD0-31FA-47A7-B44A-467B2633E423@seanet.com>
In-reply-to <1298999234.69.0.771997797452.issue1714@psf.upfronthosting.co.za>
Content
On Mar 1, 2011, at 9:07 AM, Philip Jenvey wrote:
Philip Jenvey <pjenvey@underboss.org> added the comment:
> My guess is you have a psyco.py file somewhere in your sys.path that is being picked up when you aren't expecting it to be

Hmmmm...  Good thought so I took an extensive look at PATH and sys.path.  No Joy.

Looking then at CLASSPATH I see I had it defined to be ".:..:"  ...a leftover artifact from some testing I did a year or two ago.  When I removed ".." (parent dir) everything worked as expected.

What's curious is the parent dir is a dir of [uninteresting] dirs.  So then how could Java/Jython pick up anything related to psyco with just ".."?  

...unless Jython sets/resets the working directory for some reason and the parent dir at that point has a file with psyco in it.  (I do have such files in various places in my file system but none should be "interesting".)

For now I can get along with CLASSPATH=. but if I or anybody else were to use a relative pathname in their CLASSPATH they could conceivably get unexpected results?  Dunno, just a theory.  

So thank you Philip for the hint.  I'm good-to-go, but this does raise the question: Does Jython/Java change working dirs (internally/on-the-fly) and then use CLASSPATH from that point making relative paths problematic?

Larry
History
Date User Action Args
2011-03-01 23:02:06larrysetrecipients: + larry, pjenvey
2011-03-01 23:02:06larrylinkissue1714 messages
2011-03-01 23:02:06larrycreate