Call variable as a function

2005-03-03 Thread Chmouel Boudjnah
Hey, It's look simple for most of the people here but i can't figure out to that. If i have : def test(): print "foo" and: var = "test" how do i call function test from var, kind of ${$var} in some others languages (or eval()) Cheers, Chmouel. -- http://mail.python.org/mailman/listinfo/py

Re: newbie, help with pythonpath

2005-03-03 Thread Chmouel Boudjnah
Eduardo Suarez wrote: I'm trying to set the python path variable so i can use them, but i haven't got it. Any hint? sys.path.append('/usr/blah/blah/blah/directory') -- http://mail.python.org/mailman/listinfo/python-list

Unimport module

2005-03-13 Thread Chmouel Boudjnah
Hi, I have some code like that to do kind of plugins load : dir = listdir('/path/') for i in dir: sys.path.append('/path/' + i "/") import Module doStuff() sys.path.remove('/path/' + i "/") it's obviously not working since it get only the first import Module while t

Re: Unimport module

2005-03-13 Thread Chmouel Boudjnah
h ok, thanks to make this thing clear, do you have any pointer how to debug/watch the python internals ? Cheers, Chmouel. -- Chmouel Boudjnah -- Squiz.net -- http://www.squiz.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with running external process

2006-01-20 Thread Chmouel Boudjnah
see the help for ulimit (builtils) : -$ help limit -- http://mail.python.org/mailman/listinfo/python-list