Can import a user-specified module?

Sung Kim skim at adobe.com
Wed Aug 14 03:10:52 CEST 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