Running external module and accessing the created objects
Kene Meniru
Kene.Meniru at illom.org
Mon Mar 11 21:23:19 EDT 2013
Dave Angel wrote:
> On 03/11/2013 07:57 PM, Kene Meniru wrote:
>
> I hope you're just kidding. execfile() and exec() are two of the most
> dangerous mechanisms around. import or __import__() would be much
> better, as long as your user hasn't already run myapp.py as his script.
>
It does what I want. Security is another issue and I understand but can't
help it until I find another solution.
import does not do what I want.
How does __import__() work and what do you mean "as long as your user hasn't
already run myapp.py as his script."?
--
Kene
::::::::::::::::::
KeMeniru at gmail.com
More information about the Python-list
mailing list