Can import a user-specified module?

Sung Kim skim at adobe.com
Tue Aug 13 21:10:52 EDT 2002


In Python, is something like the following pseudo-code possible? Thank 
you!

moduleName = GetNameFromUser ()

import moduleName

if moduleName.SomeFunction exists
	x = moduleName.SomeFunction ()


--Sung H. Kim
   skim at adobe.com





More information about the Python-list mailing list