Think I figured out the problem. Ubuntu doesn't look at /etc/profile--that's why I wasn't getting PYTHONSTARTUP, even when I didn't use --plain. Moving my export PYTHONSTARTUP line to /etc/bash.bashrc worked.
So the issue now is that shell --plain doesn't use PYTHONSTARTUP, which both Deryck and I think it should. :-) I've modified the ticket to reflect the real state of affairs. On Nov 14, 2007 10:17 AM, Deryck Hodge <[EMAIL PROTECTED]> wrote: > > Hi, Todd. So this is two issues, then. > > On Nov 14, 2007 9:04 AM, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > > > > Good point. In fact, I wasn't using --plain, but PYTHONSTARTUP wasn't > > being respected anyway. Any ideas why the heck that should happen? > > No idea, sorry. :-) I'd attach with pdb and walk through how the > options are being set and try to deduce why you're getting this > behavior. That's how I would handle it, but others will certainly > have there own ideas. > > This is the real bug here, so it would be nice to see why it happens for you. > > > > > At any rate, I don't think it matters whether you use --plain or not. > > If you use --plain, you'd expect to get normal behavior for typing > > python at a terminal prompt, which does use PYTHONSTARTUP. If you > > don't use --plain and don't have IPython installed, why should you not > > just get the normal behavior you'd expect from using plain Python, > > i.e., respecting the PYTHONSTARTUP environment variable? > > > > I would agree with this, too. I think the initial thought when this > was added during the last sprint was that plain implies nothing extra, > but really I think it should be the plain shell as you have it setup > by honoring PYTHONSTARTUP or pythonrc. > > It might be nice to update the ticket to point to this discussion with > a note summarizing, since it's not really the real bug. > > > Cheers, > deryck > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---