__import__ with dict values
aleksandr.goretoy at gmail.com
Thu Mar 12 11:43:36 CET 2009
yay, no more
exec ("import " + "sys")
in my code
On Thu, Mar 12, 2009 at 5:42 AM, alex goretoy
<aleksandr.goretoy at gmail.com>wrote:
> I have resolved this problem in my code. It has something to do with your
> current working directory when you append cwd/jars to sys.path and try to
> import from interactive console
> -Alex Goretoy
> On Thu, Mar 12, 2009 at 4:58 AM, alex goretoy <aleksandr.goretoy at gmail.com
> > wrote:
>> How would I import with __import__ from dict values?
>> I want sys.path value inside d['syspath'], below code doesn't work for me
>> and how come does above line doesn't give me diff value than below line?
>> Meaning, when I do this doesn't work. Which makes sense.
>> but this works both with fromlist and without.
>> -Alex Goretoy
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list