Hi Staf users,
I'm trying to parse a configuration file using the following python code in
STAX XML program:
from ConfigParser import SafeConfigParser
import glob
parser = SafeConfigParser()
parser.read('/usr/local/staf/services/stax/samples/config.txt')
remoteclient = parser.get('globalvariable', 'remoteclient')
When attempt to run the code through STAX xml program. It fails to run showing
the python error code "importerror: Cannot import name SafeConfigParser".
Note: When run the same code through Python terminal, everything works fine.
Please suggest on this.
Thanks,
V Raja
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users