[Chicago] Anaconda vs. IDLE.

Lewit, Douglas d-lewit at neiu.edu
Thu Oct 15 15:25:44 CEST 2015


Hey David,

I'll try this out.  I gotta shut down the laptop and get to work!  But
thanks for the easy solution.  I will try both suggestions can get back to
you--probably tomorrow.

Have a great day and thanks so much!

On Thu, Oct 15, 2015 at 8:21 AM, David Rock <david at graniteweb.com> wrote:

> * Lewit, Douglas <d-lewit at neiu.edu> [2015-10-15 08:08]:
> >
> >
> *//anaconda/bin:/Users/administrator/anaconda/bin:/Users/administrator/anaconda/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin*
> >
> >
> > Now let's turn to IDLE for a moment.
> >
> >
> > *import os*
> >
> > *print( os.getenv("PATH") )*
> >
> >
> > *'/usr/bin:/bin:/usr/sbin:/sbin'  ####  NOT the same as above!!!*
> >
> > If anyone can provide a solution I would be very grateful.  Is there some
> > way (using "os" or "sys" functions) that I can get IDLE to "see" my
> > computer's complete path?  I tried to find a solution on Stack Overflow,
> > but the stuff I found there was a little incoherent.
>
>
> How are you starting IDLE?  If you are starting it from the Terminal, it
> should inherit the same $PATH.
>
> As for setting it within IDLE, you used os.getenv to see $PATH, try using
> os.putenv to set it:
>
>
> os.putenv("PATH","/anaconda/bin:/Users/administrator/anaconda/bin:/Users/administrator/anaconda/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin")
>
>
> --
> David Rock
> david at graniteweb.com
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> https://mail.python.org/mailman/listinfo/chicago
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20151015/913a7bff/attachment.html>


More information about the Chicago mailing list