importing module as filename

david farning dfarning at localhost.localdomain
Mon Nov 10 22:44:50 EST 2003


I am having a problem with name space contention.
I am combining two existing programs both with their own config
modules.

I have been expermenting with 
import config #grab first config
sys.path.insert(0,"/usr/share/yum/")
import config as yconfig #grab second config


The first config always seems to squash the second config.
There should be a yconfig.yumconf but there is not.

any suggestions? 

Dave Farning




More information about the Python-list mailing list