execfile environment??

Konicki, Jason jkonicki at harris.com
Tue Aug 7 17:02:39 CEST 2001

I am trying to call a module with the execfile function. Is there a way to
specify the paths to search for the module I am calling? 
For example:

def call_module(module_name):
	# addition checks required before executing
                print "Executing "+module_name
When I call this function, I want it to find "module_name", i.e testing.py,
within the sys.path. Is this possible, or do I have to include the entire path
of module_name when using execfile??  


More information about the Python-list mailing list